The Zapper Gun's trigger button (Push Button) has connected to the digital pin of Pi pico.
The LED and buzzer are connected to another digital pin of the pi pico. So, when we trigger the zapper gun (OR when the push button read the high voltage), then the gun performs the same keyboard key/shortcut key action which we have put in the program, and with this, the buzzer & LED started blinking and gun trigger performs the action.