By unlocking the passenger side door only, putting the key inside, then pushing the little lock button on the inside and closing the door.
The lock button on the inside of the drivers door won't lock with the door open to stop you locking your keys inside, but not on the passenger door.