When walking diagonally (pressing W and D) both inputs play sound. Need to separate sounds (maybe W overriding D?)

So have managed to make a foostep sound play when pressing one of the movement inputs (W,A,S,D) but now when I am walking diagonally (pressing two movement buttons at once) both of them play the sound file.

Is there a way to separate the sound (basically W overriding the sideways movements (A + D) when both are pressed and then I want to apply the same method when moving backwards (pressing S))

Any help would seriously be appreciated!

Here is my current blueprint: