Input resets after clicking on widget

When I’m pressing for example down arrow (and Im going down) and then open widget and then click mouse on the widget previous input (down arrow) resets.
Is there a way to preserve that and hold on to previous input, which I’m still pressing?
Probably this issue is connected to void UWidgetBlueprintLibrary::SetInputMode_GameAndUI(APlayerController* Target, UWidget* InWidgetToFocus, bool bLockMouseToViewport, bool bHideCursorDuringCapture).