Short Term Movement


I am struggling with a very large issue that I have. Basically, I want to set the hero movieClip’s movement so that if the RIGHT key is pressed, he will move for a short period of time, then stop (even though the key is still being pressed). I also want to do this with the LEFT key. If anyone could help me out or point me in the right direction, I would be very greatful. Thankyou for you time.