With many older doors you need to pressure the door as you fiddle with the key as the warped door is bending the lock at an awkward angle.
Open lock on door.
Then swipe quickly downward.
Privacy door knobs have a push lock or twist lock on the inside of the room.
To open a locked interior door with a screwdriver first push the screwdriver as far as you can into the hole on the doorknob.
Here is another life hack for you.
In cases of accidental locking these unlock from outside of the room using a coin or stiff push pin.
If the locking mechanism is a latchbolt the kind of bolt that is spring loaded and has one angled edge and the angled edge is facing away from you you can hook it with a wire hanger.
Angle the card towards the frame.
You have to manipulate the clip into the ideal shape that you need in order to open the lock.
If you have two paper clips on you the process will be that much easier.
Designed for interior doors such as bathroom and bedroom doors.
Then just turn and twist until the screwdriver catches on a groove and the lock clicks open.
Ever locked yourself out and have no way of getting in.