Btw, black Apex that would look like this...
onClipEvent (load){
speed = 5;
}
onClipEvent (enterFrame){
if (Key.isDown(65)){// the key code For A
this._x -= speed; //makes you move left
}
if (Key.isDown(68)){// the key code For D
this._x -= speed; //makes you move left
}
if (Key.isDown(83)){// the key code For S
this._y += speed; //makes you move Down
}
if (Key.isDown(87)){// the key code For W
this._x -= speed; //makes you move Up
}
}
Something like this is how I personally would write it.