Help with plat-former character rotate

i have a modeled character and a move script with ground detection but i want to know how i could make a smooth turn for right to left and left to right when using the arrow keys thanks

ive done it guys if anyone whats to know what i did is i put 2 gameobjects on the ends or the map called rightTarget and leftTarget then i gave them this code:

var player : GameObject;

function Update () 
{

 transform.position.y = player.transform.position.y;

}

then i put in the character script if the button d is press transform.LookAt rightTarget and the same for the a button