I am not fully sure how does transform.localPosition.y affects the pitch but it is caused the ship to turn to rotate on the X axis crazily( going up to 80 regardless of going up and down).
Without that variable, the rotation on X axis works properly (rotate up to 20 moving up and rotate down to -20 moving down).
Any idea of the purpose of transform.localPosition.y being added into the equation?
Thanks