A person presses a lock to sound an alarm, and when the lock is opened, it will no longer sound.