bugfix to stop responding to key/mouse events when igg window is not in focus