I am writing a basic program that asks the user to type in a String, and I am trying to use a Robot (from java.awt.Robot)that will type this message back into a
java.awt.Robot
If I have a unicode character and all I want is to know the keystroke for it, then I use
int keyCode = java.awt.event.KeyEvent.getExtendedKeyCodeForChar(charCode);
I've never needed another, more complicated way to do this.