Removed FlushEvents from wait.m, because this disabled access to menu with [ESC]. Changed keypress interface to use KbCheck, which simply detects keyDown events without checking or clearing the system even queue.