Fixed deadlock issue with player input