Keyboard UMG controls for widget

Hi! Im need help with something as Im quite new and Im not sure what nodes to use and such…Tried finding guides or tutorials but no help in that.

Im just looking to make this simple keyboard interaction with a widget that I’ve made.

You press e open the widget, and I want to have it so that you can just press a keyboard button/e again to just close the widget, since I dont want too much of mouse control in my small game. Is this too much or is it just simple to do, but I just can’t figure out how?