Check for input in animation blueprint

I have this very simple setup in my animation blueprint for walking animation, the issue is that the animation plays no matter whether the movement is made by the player or if the character is pushed. Is there something like “Is key pressed” thing I can use to determinate if the movement is player or environment triggered?
image

Solution that worked for me: Using “get current acceleration” instead of “get velocity” made it work perfectly

1 Like