This is the kismet high level scripting which controls the puzzle for the key and gate sequence. The gate will remain locked until the player finds the key. After finding the key, kismet will add the key to the player’s inventory, then allow the player to “use” the key to unlock the door. Unlocking the door removes the key from inventory.