rotate only camera

You can add/get camera component and rotate it.

how can i rotate only camera and block the rotation of character/actor ?
in this example, when i don’t press right mouse button, the character/actor will rotate with the camera rotation.
when i click right mouse button, in will stop the rotation of character and only rotate camera.