Chromatix wrote:
Generally, a keyboard does not itself produce ASCII codes.
These days, yes. And also if you look at the low-level hardware. But there are a fair number of late-70s and early-80s computers out there where, without hardware modifications, you do not have access to the scan matrix and are effectively stuck with codes (often mapping fairly directly to ASCII) produced by some hardware not controlled by the CPU that's doing the scanning. The Apple II series is probably the most widespread example of this, but I own plenty of other computers (the whole Fujitsu FM-7 series is just one example) with similar design.
What you're doing, which seems to pretty much require control over direct keyboard scanning, is fair enough; I suppose I was misdirected by the "serial console" terminology and kind of assumed that you were aiming for arbitrary devices on either side.