Fixed bug where window key flag would not get reset if the Janeway window loses focus.