How do I make a door open and close by pressing "E"

You should also add a Flip Flop and set a Boolean variable (Open = True/False) to true or false and then play correct animation