Clearly, the answer is you write a keyboard emulator running on the RPi in 9800 lines of of assembly.
An (probably) easy way is to connect a switch to a GPIO pin, then watch for special patterns of on/off sequences as cheat codes :), and you end up programming a computer in binary code.