On could be made using something like an arduino, some optocouplers to separate voltages, and various other parts. There is already code to read a snes type controller, so the rest wouldn't be too hard. Even easier if you just cared about the direction and fire and use a wire cable to connect an original controller for the keypad.