Calling Add Yaw input from EventTick does not work

Hello,

I am trying some basic programing in UE5 and got stuck on one problem.
When I call “Add Yaw Input” through InputAxis event, it works fine, but when I try to call it using the EventTick, it does not work. The blueprint looks like this:

I tried to print the “Get Mouse X” after the if node - it worked.

I will be glad for an sugestions.