if (Key.isDown(65)) { player._x -= speed; if (prevAnim != 1) { player.gotoAndPlay("run"); prevAnim = 1; } }