emulator -- fix bug in getKey

bug in getKey routine left it possible to get a key press and still not
advance to the next instruction.