Animation Changes Rotation

When I play an animation on my spaceship, it changes the direction it is going. I want it’s rotation to stay the same, how would I do this?

if(Mathf.Sign(swipeDirection) == 1)
            {
            	animation.CrossFade("flip_right", 0.3);
            }
            else
            {
            	animation.CrossFade("flip_left", 0.3);
            }

Create an empty object - let’s call it Ship - and child your model to it. Use Ship to move and rotate around, and the model only to play the animations - this way any changes in the model will not affect the object movement.