There are numerous examples of how to connect button switches via an external interrupt. This example offers an alternative approach.