[Simon Prickett]’s panic switch does exactly that. It’s a delightfully tactile arcade button connected to a Trinket M0, which can emulate a keyboard quite easily as an Arduino or CircuitPython ...