Was it anything in particular you were doing when the cursor got stuck?

Did you try holding the middle mouse button (or V) to rotate the camera, to see if that would fix the cursor?