Updated input handling on win32
got rid of annoying flicker in windows build.