Build a DIY footswitch USB controller using CircuitPython and QT Py RP2040. This uses a micro switch, micro-controller and 3D printed snap fit parts. This footswitch can be programmed with CircuitPython to make custom keyboard shortcuts, macros and even media controls.
QT Py RP2040
https://www.adafruit.com/product/4900
Micro Switch
https://www.adafruit.com/product/818
Code on GitHub
https://github.com/adafruit/Adafruit_Learning_System_Guides/blob/main/Single_Button_Footswitch/code.py
The author marked this model as their own original creation.