Is there any way to get the String text representation of a keyboard key?
Examples:
Input: User presses Shift
Output: "Shift"
Input: User presses F1
Output: "F1"
Input: User presses Left arrow key
Output: "Left Arrow"
Im using a keylistener in order to get the key strokes by the way
Closest to this is KeyEvent.getKeyText: http://docs.oracle.com/javase/7/docs/api/java/awt/event/KeyEvent.html#getKeyText(int)
I say closest to because there are some platform-specific differences in implementation on certain keys