The CNC crowd (myself included) regularly use gamepad's like the Logitech ones as a poor version of a remote control (they have a proper name in the CNC world that escapes me at the moment.) They come in wired (~$25AUD from a retail store) and wireless for about twice the price.
Recently while testing my scanning card (
https://www.eevblog.com/forum/oshw/poor-mans-scanning-multimeter/) I tried using one of these controllers to trigger parts of Python scripts to log measurements while I was modifying a circuit (I can't reach my PC without moving.) Used the dead easy pygame library to integrate it.
Anyway long story short, works awesome and saves having to have a full keyboard within reach, particularly the wireless version.