So, I found this page by Daryl Rictor
http://sbc.rictor.org/io/pckb6522.htmlWired it up, bada bing, bada boom, I got a working PS/2 keyboard!
Well, I'm actually using an AT keyboard but they are basically the same.
Thanks Daryl!!!
I debated running the keyboard directly off the VIA. I thought a simple ATTiny or "Arduino-like" circuit could have easily translated the serial keyboard to parallel ASCII. But I knew the VIA was up to the task.
The only thing I had to change was the two lines defining where my PORTB was located.
I'm getting closer and closer to running EhBASIC off this 20x4 LCD module.
The next thing I need to fix is the line wrapping. My thoughts are to create an 80 byte buffer that is linear. Representing the four lines. Then, have my LCD write routines translate it into the different, weird, format the LCD needs.
Then, I need to integrate the DEL, cursor keys, etc.
Finally, convert my LCD mode to 4 bits so that I can move the keyboard setup to the on-board VIA of the Potpourri6502. Right now, I'm driving it off SLOT3 and using another VIA.