When you press a button, the button usually lightens up and then, after some time, lightens down again (so you can press it again). I need to check for the state of the button according to its activity.
Would I then need to count the amount of button presses?