How do I change camera to free?

Ahh I see. There is a setting in either the camera or the character movement (I cannot remember exactly which one, it has been a while) which locks and unlocks the camera moving separate from the character. You could activate or deactivate this by checking the velocity of the character, so if velocity is more than 0 lock the camera. If it is 0 then unlock the camera.

This is just off the top of my head so hopefully it helps!