Added focus event handling for console/game switching