Rotate the player with animation

I have a First Person controller and i have an animation wich the player rotates 180 degrees.
The probles is that during the animation the MainCamera of the player can only move on the vertical axis.
My question is how can i fix this to get movement in the vertical and horizontal axis during the animation clip.

You can make an animation on your camera so it would shake (up and down) and trigger it at the same time the player turns 180 degrees.

I want to rotate the player 180 degrees and while the animation is playing the player can move the camera vertical and horizontal.
The problem is when the rotate animation is playing i CAN’T move the camera in the horizontal axis.
Why?