How to open a lock with the key inside?

This time we will see how to open a lock with a key inside, because depending on the type of lock if you can open the door to access the interior of the house....