Close/open door blueprint

This is my blueprint for opening a door with the keyboard but i miss a couple of steps. When i press the E key the door opens but i would like to be able to close the door. What do i have to ad to my script to make this happen?

This is how i solved the problem with your help. Do you miss anything in this blueprint?