Very annoying problem with creating an in-game pause menu with UMG

I don’t quite know how to set them up with button presses instead of input axis events.

It should be simple from -1 to 1 range of values. Instead of Move Right you would have Move Right and Move Left one provide 1 to Add Movement Input and another one provides -1 to it.
This is just for test anyway, to make sure that Axis Input is the source of the problem.

I tried to set the movement to input keys instead of axis events but the character rarely moves forward or backward properly compared to the axis events. Also, as mentioned before: When I remove the “Create Widget” or the “Set input mode” nodes, then I am able to pause the game without the bug though my widget isn’t there.

I solved it like this.

Move forward is a method in BaseVehiclePawn.