Key.isDown
Setup the MovieClip
We'll start by creating a spaceship graphic we can work with. Click Insert > New Symbol:
- Type ship in the Name box
- Make certain the Type is Movie Clip
- Toggle the Export for ActionScript checkbox
- Make certain the Identifier reads ship
Click OK.
Now draw a spaceship pointing toward the right side of the stage. I'd recommend just starting with a rectangle and getting on with the ActionScript. If that's not your style, here are a two examples to inspire you: