Connect a regular push-button switch to the Arduino UNO GPIO pin. It detects a single click, double click, and long press, similar to a computer mouse.
Print each action on the Arduino IDE’s serial monitor.
Example