Character Movement Animation

Hello!
Im new to UE5 and I’m currently working on a project. In this project I am currently creating a character that can move and is animated while moving. Walking works just fine, but instead the character looking in the way he walks, I want to make him look in the same direction and walk sidesteps to the sides (with a and d)
The problem i have is that when i press w and s the animation also gets played.

But this doesnt work how i want it to work. Has anybody got any improvement tips or other solutions?

im not expert on animation but i think the problem is on your character itll have orient rotation to movement checked, if you disable that and then use a blendspace for animation it should be ok