Lock for access to a cell. Encoded to combine with other safety locks. When the door is open, the key is trapped.