animation play while no button is pressed?

i have a character with a running animation and an idle animation, i want the idle animation play if your not pressing any buttons on the keyboard, but then switch to the running animation when you press the right button, i have it set up so the character moves forward and the running animation plays when you hit W

You don’t need to have a “no buttons pressed” thing set up. Here’s what you do:

  1. Set the stand ani with an Always sensor.

  2. Set the walk ani with the direction button.

  3. Go to the actuators for the actions and set priorities so that the walk ani has a lower number than the stand ani. (Say 0 and 1.) Because the walk has a “higher” priority (with a lower number), it will override the stand ani.

thanks, that worked