Thanks.
The key is indeed a trap, more so that I ran out of time to implement the feature - of it unlocking the secret door in the library.
But yeah in general the idea is that you have to think ahead as you can't get the key if you have a long conga line as you'll get trapped in in the room. Hoping to find time in the future to keep working on the game.