How do I choose if the game keeps the mouse cursor?

To add on what dbInteractive said, in my Tutorial on custom cursors. I briefly talk about how the Player Controller interacts with the mouse.