Locked Houses

Hey there,
How is are you supposed to lock your house and be able to get out after you get killed with your keys???

Drop a duplicate in a bush nearby.