Keyboard control

OK, so now I got my mighty car done and it runs on its own motors, but I'd want to control it with left/right arrowkey, but I have no clue on how to get if you are pressing a key (noob @ as3..)... I tried some AS3 moving tutorials but it just said 1120: Access of undefined property stage. and if I removed the stages, it'd say the same about eventlisteners...

I'd Really appreciate if someone kind enough would do really simple (just like a box with the movement with arrowkeys added to it) demo with Box2D, and I think it would be useful for other new Box2D'rs too.

More simple tutorials would help too, warhell's is probably the best, and only useful I've seen so far... Well yeah, there's the manual, but if you are total beginner, who would like to read several sites of weird equations or functions or stuff, examples are (at least for me) the thing that helps learn the best, and I think it wouldn't be too hard (if you just got the time) for the many Very capable people here. Thank you.
~O~
I'm sorry, but this is a board about the physics engine, and it's just not appropriate to answer general AS3 questions. We'd just get flooded with giving advise, as there are a lot of people who take up flash each day, and a certain number come straight to these forums. There are many boards more appropriate for your question.

Once you've got the basics down of responding to keyboard events, you can come back to ask how to turn it into motion (short answer: use SetLinearVelocity or ApplyForce), but I suspect you won't actually find any difficulties in that part.

That said, the TestBed does provide an Input class that makes the keyboard listening whole process easier. You could try using that.
I know how to set something to be keyboard controlled in AS3, but for some reason it just won't work when I try to combine it with Box2D... Well I'll look into the testbed later and see if I manage to put something together...

Original thread: https://box2d.org/forum/viewtopic.php?t=1820