Applying Impulses?

Hi there,
So I've been trying to use the "Boxman" baseclass (featured in the demo platformer section) on some objects in an attempt to learn more of applying impulses (this being relevant to my current project) but I've reached a few hiccups. Obviously, the Boxman object's impulses are created from "Input.kd( ... )". These work for the arrow keys, etc, but what I've been attempting to do involves using mouse-downs on the stage, and potentially accelerometer motion. My main question is: how could you re-phrase the Boxman baseclass script so that it used some other input besides the keys, such as clicking the screen?

Thanks, anything helps.
If you look at the misc/Input.as class you'll see it has variables that track the state of the mouse, and various mouse utility functions.

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