Making it easier to debounce switches

Quoting myself:

I also thought that Paul's suggestion should be considered. Bounce2 or any debouncer that is easy to use should be included in the Arduino's IDE.

Yes, this algorithm is by far the most popular one amongst Arduino users around the world.

Jacques