You never ceases to emus meThat is quite easy to program a microcontroller to do that. You can use Google and some creative searches(keyboard ps2 microchip). It is many project out on the net
This is good for background info. http://www.beyondlogic.org/keyboard/keybrd.htm The keyboard do not send ASCII codes but rather scan codes.