While not the most elegant solution, you can simply check for all your input keys. | returns true if at least one of the conditions areis true.
bool isWalking = Input.GetKey("w") | Input.GetKey("a") | Input.GetKey("s") | Input.GetKey("d"); Maybe later you want to switch it for your query against the input manager. Hard coded values are usually not best practice and the player won't be able to change his control to arrow keys or joystick.
bool isWalking = (horizontalInput != 0) | (verticalInput != 0);