I'm not sure if this will help. I found this link and had a quick look at the code this fellow developed to emulate 32 PS/2 keys using a PIC16F84.

http://massmind.org/techref/microchip/picboard.htm