How to fix character walking only backwards?

In your Blueprint, you set the Speed variable from the Rotation. You Need to set it up from the velocity.

How does your entrypoint Looks like? I mean the condition from idle to walk? There you Need something like: Speed > 0 ---- than can enter Transition.