How?

And how do I stop the player but for the camera to rotate?