Check the state of the button, you can so something when it is pressed quickly, at the start of when its held long, and at the end of when the long hold is released If desired, this library can also ...
used for push-button like switches delivers input value (state) after it has been stable (not flickering) for longer than the debounce period delivers continuous or single-shot pressed-on time ...
There was a point in time, excruciatingly brief, in which desktop computers often had a large “TURBO” button on their front panel. Some even featured an LED display that would indicate the current CPU ...