Thanks for playing!
In the option menu you can select “mouse lock”, which will grab the cursor and prevent it from leaving the window 😁