Why do we need any of that, though? Just do what the program is already doing. If you press W, you run north. If you press W + D, you run north east.
If you pressed W+S, I assume you would just not move, because you are attempting to move in two opposite directions at the same time. Regardless of what W+S actually does, though, it doesn’t really matter. No one is going to be actively pressing W+S, nor do they need to