Controlling two DC motors with keyboard and more

Yes, the keyboard is connected to the computer as normal, and the arduino to the computer via USB. With the hyperterminal or monitor serial I should be able to send the direction I awnt the motors to go. I think the key is making the WASD keys a variable, so that I can use de command If... else..., but I have no idea how to do it