PC Keyboard -> 6522 Interface
I have written a simple driver to scan and decode the PC keyboard and return the ASCII code or pseudo ASCII code for a standard 101 key AT keyboard.   Complete details are in the file under the Downloads tab.   You can use my assembler to compile it into an object file!