Can someone please help with my keys?

Every-time I grab the key and then open the door, it doesn’t remove the key, so i can then open every single door without needing the next key.
Here’s my game-

Because when you message OPEN to all doors, it turns all the doors on.
Whenever the player has 0 keys, also send LOCK to all doors to turn them off.

Thx a lot