Help With Basic Actions!

Hi, I’m trying to do a flash game, something like this one and I would like some help on identifying all the Functions I need to use.

The first one that came to my mind was “hittest” with some “If” function, like this: “If this object hits this other and Left Key is Pressed” show “Excelent!” text.

Am I going in right direction? Has anybody ever did a game like this in Flash?

Well, I think this is it for now.
Thanks anyways! 73W