> I've done something similar for another purpose. Did you find that the > wiring of the keys didn't really follow any pattern? I would have > expected it to be a semi-nice grid, but it sure wasn't even close. The > only thing I could think of (which I never got around to checking) was > that it had something to do with the scan codes the controller > generated. The pattern is fairly easy to understand, just grab an old keyboard, unassemble it and see how it works ;o) But in MY setup, I used first the buttombox from Leif (http://w1.132.telia.com/~u13205992/buttonbox/) which can be reprogrammed from a PC (note: You CAN use it without a keyboard connected, but I wasn't able to reprogram it thru the puter) and later did my own design with BASCOM and the optional keyboard lib. If you are looking to a simple-no-frills-code to just burn an 90S2313 and use your keys, drop me a mail and I can program it in BASCOM and send you the hex/source --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.514 / Virus Database: 312 - Release Date: 28/08/03 -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu