When you walk into a key, you begin carrying it until the key is spent, indicated by a yellow dot on your bandit's hand. If you then walk into a door, the door and your carried key disappear.
ahh. thank you. I guess I need to "mind" my pixels a bit more.