Most laptops have a touchpad toggle key. The cursor often reappears immediately. A simple restart can fix many problems.
A disappearing mouse cursor can break your flow and feel completely random. This piece explains why it happens on modern Windows laptops and walks through the one setting that reliably stops it.
If the mouse keeps disappearing on your Mac, make sure that it's connected, and the cursor isn't too small. You can quickly find your cursor by shaking your Mac's mouse, which will cause the cursor to ...