Slowing Down Rotation Speed

I am trying to get a cube to rotate on button command. I have the button command code down, but the rotation is happening to quick. How do I slow down the rotation speed?

Here is one of the code for the button command rotation( I separated the left and right control from the up and down code)

function Start () 
{

}

function Update() {
if (Input.GetKey ("left")) {
transform.Rotate(0, 90, 0);
}
if (Input.GetKey ("right")) {
transform.Rotate(0, -90, 0);
}
}

You can slow it down very simply by giving it a value smaller than 90 such as:

transform.Rotate(0, 1, 0);

which would rotate the object at 1 degree per frame. If you have a set ‘degrees per second’ that you want to rotate by you can use Time.deltaTime to achieve that effect:

transform.Rotate(0, 10*Time.deltaTime, 0);

will rotate at 10 degrees per second.

Scribe