And in case you use a Joystick and no mouse.... the mouse can STILL be locked in flight control, even though you dont need/use it. The default key for that is "H".
You can either live with that and hit H key every time mouse accidentally locks up, or you remap the H key in OPTIONS > CONTROLS > Map Keys. In Global find the "mouse control toggle" function and clear the key.