controls disabled during FPSCamera animation?

I added an animation to a FPSCamera to make it look like the player is being dragged, but during the animation the controls are not working at all. I want to be able to look around, see the enemy pulling you. How do I make it so you can still use the joystick axis’s during that animation? (I used legacy animation) and set it to play automatically because its the start of the scene. It then switches to a different camera after the drag scene. And I did use the actual player controller, not just a camera. All the scripts are active for controls.

i would suggest creating a bool variable to use the joystick, and when the animation starts make it true

for example:(C#)

//Set lookAround to false

private bool lookAround = false;

//When you press the "w" key, do this:

if (Input.GetKey("w")){

    //Play the drag animation
    animation.Play("Drag");

    //You can look around
    lookAround = true;
}

and also put it so that in order to look around,

you need the input of the joystick && lookAround == true

for example:(C#)

if (lookAround == true){

    float horizontalLook = Input.GetAxis("Mouse X");
    transform.Rotate(0, horizontalLook, 0);

}

You may leave the camera animation as it is, and apply the same controls on another game object, then, make your camera a child of this game object.