Game controls

I have a little homage to zelda game i’m trying to make.
I have the movement animations for the main character (link)- and he is moving- however when the key is pressed he is frozen on the first frame of that direction’s animation- then when the key is released, he proceeds to “run”. Anyone know how I can reverse that?
Thanks!
link.onEnterFrame = function () {
if (Key.isDown (Key.RIGHT)) {
this._x += moveSpeed;
link.gotoAndPlay(“right”);
}