The keyboard transmits data serially. The keyboard header pinout is:
1 DATA
2 CLOCK
3 RESET
4 +5V
5 key, removed pin
6 GROUND
7 STATUS (led +5V power)
8 INUSE -"-
There are pc-keyboard adapter documents in
http://www.aminet.net/hard/hack/There are documents for PIC and 8051 series microcontrollers.