Showing how the debug mode works on my KerbalController - a custom control panel for the game Kerbal Space Program.
You can see sometimes the buttons do not respond immediately. And when I hold a button down, it blinks on and off. The plugin that receives the data in KSP (KSPSerialIO) does the positive edge detection to prevent repeated actions on a single press.