Making an interactive movie (QTE-style)

Hey guys, i’m in the middle of making an interactive movie with events within it that act sort of like quick time events, only that there are multiple outcomes, making it sort of like an old “Choose your own adventure” book. I’m certain you can do what I want to do within Flash, but I have no idea how to as the only commands I know in Actionscript are stop(); and play(); and i’m not sure what the (); means, only that I needed it.

However, all I need is some simple commands to make it so that when the viewer hits the “a” or “l” key, the film will advance to another frame. These keys are meant to correspond to two different actions in the film depending on the situation - At one point, to leave through a door or dive through a window, and at another to dodge left or right away from an object. Though there is a third option for when the player does nothing, that should be simple enough to code so it’s not a problem.

If anyone could help me out with getting these key presses working it would be so helpful. I’m using Actionscript 3.0 and have only very basic knowledge but I can learn fast - I’ve currently managed to make it so that when you hit the a or l button, the movie continues, however I cannot find a way to set it so that it’s bound to an object rather than the stage itself, so each time I hit the a/l key it gets taken back to the beginning of the animation.

Thanks for any help!