Do not send keyboard events to the game while the application is not active.