I've seriously considered getting some sort of foot pedal arrangement, albeit mostly for FPS games - I'd love to be able to use one foot to melee attack, and another to activate/deactivate the mic.
I’ve tried repurposing a three-button guitar footpedal for FPS games before.
The connection for the pedal is TRS, with one button being ring, another sleeve, and the last both—so it ended up being useful for only two commands as the last button would be ghosted by pushing the other two simultaneously.
I used the pedal for left and right leaning and with melee in the center, but with the ghosting, I ended up dropping melee and just stuck with using it for only leaning.
I used an Arduino Pro Micro which supports acting as a keyboard and just soldered a TRS socket so I could just use a regular TRS cable to hook up the footpedal.
It’s a bit satisfying once you get it working and the project didn’t cost too much—maybe about $20 (found a cheap used footpedal) and enough games use “q” and “e” binds that I get to use it a bit.
[0]: https://en.wikipedia.org/wiki/Tonnetz