Another question: While the mouse is moved, is there a way to know if a keyboard key such as A or 'X' is down (pressed) ?

OK, it can be done by tracking the keyPress and keyRelease events, but it would be more convenient to just retrieve the keyboard state at any point in the program.

Any clues ?

Thanks