Another related problem is that the keys stop working after you save the game, or change the name of a line, etc. It seems as if the focus isn’t returned to the main window after it is caught by the input line.
A workaround is to click on the main scene. After that, the keys work as usual again. (At least, this happens in Linux)