if(Input.GetButtonDown("w")){
//the character is moving
abc();
}
if(Input.GetButtonDown("a")){
//the character is moving
abc();
}
if(Input.GetButtonDown("s")){
//the character is moving
abc();
}
if(Input.GetButtonDown("d")){
//the character is moving
abc();
}
//There's probably an easier way then doing five if's....
function abc(){
//Action you want if character is moving
}
Pseudocode, of course. There’s PROBABLY a hash… bit… thingy somewhere (maybe something along the lines of Input.GetButtonDown(any) but I’m not sure) that just checks to see if buttons are being pressed.