Wait, I thought I heard a door click whenever I was hiding in a couple of rooms in either Normal or Nightmare Modes respectively. Although, as you said, the chances of that happening are very rare.
If it’s possible that the AI could grab the key, go to a set path to the direction of where the door is, and unlock it to find more keys, then this shouldn’t be that hard to implement.