MMORPG Rotate Character

hi all,i need help....im making mmorpg game and i don't know how to make something....When i press A or D my character going to left,what i need to do to make my character (with camera) rotate when i press A or D...

Example: Press A - My character and camera rotate in left

sorry for bad english

well i dont know if you aready got a script for moving your character so i made you one :P

here is the script:

var speed = 3.0;
    var rotateSpeed = 3.0;
    function Update ()
        {
            var controller : CharacterController = GetComponent(CharacterController);
            transform.Rotate(0, Input.GetAxis ("Horizontal") * rotateSpeed, 0);
            var forward = transform.TransformDirection(Vector3.forward);
            var curSpeed = speed * Input.GetAxis ("Vertical");
            controller.SimpleMove(forward * curSpeed);
        }
    @script RequireComponent(CharacterController)

so now you have a character thats moving so now for the camera, in unity there is aready a script that does what you need.in your project panel search for smoothfollow.When you got it add it to your camera then you only need to click on your camera and look in the inspector for your smoothfollow script.once you found it there is a target, drag your character from the hierarchy to the target. start the game and the camera will follow the movement of your character :D