Character movement messes up with mouse rotation

So my movement and animations are fine when I use the keyboard to move the character, as soon as I move the mouse around it starts playing the wrong animations, such as strafing the wrong way and moving backwards animations. Anyone know how to sync them so the animations are always the same?

can you share some screenshots of your input handling/binding? do you have a spring arm componenent which is maybe wrong configured?