How to activate the keyboard?

In my game I have a pause menu, I activate it with Q button. Then I can press continue button using mouse to deactivate it. It works, but I want to be able to deactivate it with Q button, but function SetInputModeUIOnly disable keyboard

Can’t call red blocks, because boolean variable don’t cnange it’s value because of the deactivated keyboard

That’s why I tried to override it like here https://answers.unrealengine.com/questions/367338/bp-set-input-mode-ui-only.html , but is still don’t work

Is your playercontroller class set to Tick While Paused?

if you select the input action pause node and look in the details panel, is execute when paused checked?