KEYWAIT if you aske me, its some such of a debug command, that should not been used in a normal code, but more when doing debug thing. Its can halt the app in a unconsern way, mostly on mobiles.
But you can do easy workaround the issue by using KEY() events in a function. Im do not checked the issue yet.
But hopefully this debug command is got fixed, its can been handy in some cases of course (im even used it my self in that way me thinks).