How to stop character from moving except from wasd

Okay im currently developing the basics of my game and i know the reasons of why this is happening but i dont know how to turn it off.

Basically when you use the mouse to look up or back it moves that way so if i looked up it would move forward, etc.

But at the same time i can use WASD to move, so my questions is how do i turn off the the mouse from moving the character, i was thinking it would be in the input manager but i couldnt find it.

Thanks, Christian

bump…