I had the same problem. After hours of searching/trying, I finally had a solution (NOTE I am not a pro in ue4 blueprints).
First of all, go to your project settings → input,
Than open your character blueprint
Now you’re going to do the same thing but than for sideways “walking” (see blueprint below)
][3]
Hope this helps.
Sorry for bad english