Creating a new device handler for a single press button?

The following thread might be of interest:

"Device Handler for Dummies"? Any suggestions for a newbie? [Groovy/Classic App Edition, 2017]