Key press once

So I saw that Unreal had an event only for when keys were pressed down and when they were released.What if I just pressed the key once and the computer registers it?Like opening a door for example. If I wanted to open a door I would have to keep pressing the key, but I just want to press the key once and then the door opens and when I press the key again, the door closes.Can someone please help me as to how to actually make that?

[…]if I wanted to open a door I would have
to keep pressing the key[…]

Not really, no. Create a Timeline, activate it with a keypress and let the timeline handle the animation.