Let me point you in a better direction :)
It's a little more advanced, but it's SOOOOO much better than this engine:
http://www.metanetsoftware.com/techni que/tutorialA.html
I still havent seen another stick man platformer! I'm about ready to release [Visible] II, so you'd better get on it :P