made it so that keypresses, mouse clicks and joypad stuff isn't detected if the window isn't in focus