TAB Input gets "Released" when in UI/Game Mode and pressing Button

Hello there. I have encounterd a problem with Input Events and Widgets.
So I want to have a widget open when I have Tab pressed and close as soon as I release it. Nothing uncommon so far, but I also want to be able to use the Mouse on the Widget an press a few buttons so I switch the Input Mode.

So this is the basic setup where I switch to Game and UI Input Mode and as soon as I release it the Input mode should switch back to Game Only and close the widget.
But the problem is as soon as I press a Button on a Widget the Tab Release gets triggerd although I still have TAB pressed. As soon as I release Tab the Tab Release gets triggerd again.
So in Short:

Pressing Tab

Switching to Input Mode Game and UI

Creating and Displaying UI

Pressing Button on UI with left mouse Button → Tab Release gets triggerd

Releasing Tab → Tab Release gets triggerd again

Hello Nobody,

I was able to reproduce this issue on our end. I have written up a report (UE-33066) and I have submitted it to the developers for further consideration. I will provide updates with any pertinent information as it becomes available. Thank you for your time and information.

Make it a great day

@RudyQ Hi , this is still an issue in 4.20 , please see if it can be solved

@RudyQ on further investigation its a general bug where it happens with any pressed key returning to their unpressed state.

Ok forget all I said its just that you need to set button to no be focusable in your UMG widget.

Source answer