This project uses a PIC microcontroller with an RS232 interface on one end and the PS/2 keyboard or mouse hookup on the other side. Interesting way to easily get your keyboard or mouse talking serial in order to integrate it into a project and communicate with software.

via Electronics Lab