Change to input with offfocus window

The game only takes input if the window is in focus.