So there could be keys and doors which have two states: ON and OFF. these states can be switched by activating switches (which could have more than 2 states) and if a key or door is ON, it behaves like normal, and if a key is OFF, it cannot be grabbed, and if a door is OFF, it cannot be unlocked/interacted with. Or an OFF door could just dissapear.