Is it possible that your BIOS reprogrammed the keyboard controller in the wrong way ??
it is possible, in fact it the only unchecked list on my To Check List: PIC not getting (re) programmed CHECK PIC interrupt mask is wrong CHECK IF flag being cleared CHECK keyboard controller ????
so I guess that leaves the keyboard controller only. That brings me to the point, what sort of references did you use to write
cvs-freebios/freebios/src/pc80/keyboard.c