To secure the metal lock pins, twist the key. Take the keyhole lock key out of the keyhole. The keyhole lock stays in place, preventing undesirable visitors with keys to your home from entering. Purchase a keyhole lock from your local home improvement store.