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

Thanks!! That’s it! Any other questions I come here to ask you lol