Some guitar pedals wired as momentary switches wired to a teensy.
It's been using it for so long I forget they are there. I haven't even checked on the teensy since I can remember.
I instinctive tape my feet even if I'm working away from my desk. If I'm zoned in I can even stamp my foot as though the pedal has become unresponsive...
I don't use Emacs as much as I used to but that's why I built them.
The very first version I had predate the current setup and was a button on the underside of my desk that plugged into my keyboard with an audio jack and jury rigged internally to ctrl (didn't have alt for some reason). Thats got to be like 25 years ago now.
It was so inconvenient as pushing my knee up was hard work (I was convinced this would stop me getting a DVT from long desk hours... But only in my right leg I guess?) esp as I got a new desk that had more clearance, if I moved the keyboard it might unplug or pull the button off the desk. And finally once I got a new keyboard the wire would trigger the button and I couldn't think why so I ditched it.
What a blast from the past!