CAMERA AND MOVEMENT

I’m currently working in 3rd person game project and I have a question about camera and movement of character.
Is there a way to make camera rotatable when character is in static pose but when W is pressed camera affect player’s movement? Like most of the games like GTA V, Assassin’s Creed, etc…
Pls if possible, explain using images cause I’m absolutely noob and probably won’t get what you say.

The third person template camera is already set up like this. Any reason you can’t replicate what it’s doing?