How do I animate rotating 90 degrees, then rotate back to the original place?
You need to use basic keyframing.

Got to the start of your animation, it I>Rotation move ahead in your timeline, rotate it by 90o and I>Rotation. Move the the next location of the spin animation, and repeat the above steps.