After commit https://github.com/mamedev/mame/commit/eac2a1fc, emu.keypost('^') sends '='; emu.keypost('@') sends '[' ... All this in ANSI mode.