The *only* thing I would change would be to make sure the mouse can't leave the window.
Please win.
Thank you for playing! If you play in fullscreen I don't think the mouse should leave the window (At least not when I tested)