You need to lock the mouse In the application If you have multiple monitors the mouse leaves the game