Better way to write character movement's blueprints

Hello guys, I’m really new with ue4 and I’m working hard to learn it.

I have a character that uses root motion for right and left movement(A and S keys). So I’m not using character’s speed to perform the animations, I’m just checking which key is being pressed.
After a few hours, finally I could have it working, but the thing is, I feel there’s a better way to write these blueprints, but I don’t know how.

Input settings:

343805-inputsettings.png

character’s blueprint:

character animation’s blueprint:

Everytime I look at it, I feel like ughh! Blueprint is so elegant, but the way I used it here to perform right and left movement are really not good. Do you think there’s a better way to write this to perform what I want??