printing value on tick event always result to alternating output between the default value and the new value

I have created the new project in unreal 5.4 and I noticed that printing any value on tick event will always lead to alternating results between the default value and the new value that was assigned to the variable.
I tested this with integer, floats, and Boolean

the problem is not related to input,
even if I trigger an event in other ways to assign a new value to the Boolean the print function still alternate between false and true

You might be using the old input system, try switching to the new enhanced input system.
Their nodes have more options than pressed / released

In my project
Pressed:


Released:

So working as intended.

Setup:

Mapping Context

Input action

Controller setup

Be sure to setup your own player controller class in your game mode

In project settings

Notice your input is in line with the old system where it had only key information at the end. It’s been deprecated for a few versions now so it’s probably just broken at this point.