My attempt at a third person Camera

I was messing around with a third person camera and the camera rotates around the character freely and when you press W it parents it to the direction (A box (Box a) is placed in the middle and the box (Box B) parents the Direction to the turning box (A)) and when you let go of W it is supposed to allow you to freely move the camera again, but the box (B) returns to it original position how would I fix this.

If my explanation was not enough here is a .Blend Help.blend (501 KB)