Blueprint Close Option HUD with same key as Opening Menu (ingame)

Can you show the keydown implementation in the widget?