User input

I am trying to check if the user has pressed ‘E’ and if they have do other stuff. Although I get no errors it does not work. Could someone help me please.
Here is the code:
void OnTriggerEnter (Collider other )
{
if (other.gameObject.name == “Collision_1”) {
showGUI = true;
if (Input.GetKeyDown (KeyCode.E)) {
Destroy (doc);
gotDoc = true;
}
}
}

You know, OnTriggerEnter is called just once, do you think you can press “E” at the exact moment the collider enters the trigger?
I might be wrong, but try to put the code inside OnTriggerStay or something like that (Not sure about the name, but you get what I refer to)

Thanks, It worked!