Clear keystates and button presses when returning focus to game to prevent endless menu loops