Openening and closing doors using keycode

I am trying to open and close a door without making a animation. Here is my basic script, which i only have the open door part at the time until i fix the issue of it only opening slightly.

var door : Transform;
var angleOpen: int;
var angleClose: int;
var speedOpen: int = 1000;
var OpenDoor = false;

function Update(){
if(Input.GetKeyDown(KeyCode.E) && OpenDoor == false){
if(door.transform.localEulerAngles.y <angleOpen){
	door.transform.Rotate(Vector3.up*Time.deltaTime*speedOpen);	
	OpenDoor = true;
	}
	}
}

It’s only going to move during the one frame that the key went down. I suggest either looping over a ‘yield’ until the desired angle, or use a Mathf.Slerp (or Lerp). See the docs for code samples.