Ah the memories eh? I had a Digital Group Z80 system with a keyboard that encoded the keypress as an 8 bit value that could be read by the computer It was 6 bits of key press and one bit for shift and one bit for control. I actually know where it is though, it's in a computer museum in Germany (long story).