Set Input.MouseMode to MOUSE_MODE_CAPTURED to so that cursor doesn’t get stuck when it reaches the edges of the screen. It should be locked on the center and hidden like in fps games.