|
This is difficult to do from the command line. I assume you are planning on creating a JFrame or some such window to capture events? With swing you can capture keyboard events and map them to what keys were pressed. You can do it by adding a keyboard listener.
|