Unreal Engine, PaperZD, Animation Graph

Hi everyone, I am stuck on figuring out how to make my character when moving on the Z axis (D and A) start the Run animation, but the animation only starts if I move with D and A. Below I attach the screenshots.

Thanks in advance for the answers



Immagine 2024-06-24 120957