I took apart a keyboard to figure out the combination of signals required for various different keystrokes. By connecting switches to trigger a certain combination, a keystroke can then be sent to the PC as input to be processed by the computer program.
