sahilamin:
In order to turn off the buzzer the key which is tagged needs to be hanged or placed near that device.
for this last part I would use microswitches to hang my key's on, it's easy to registrate.
When the key is on the switch the switch will be down and send An input signal.