Java converting keycode to string or char
Cast it to Char.
Char c=(Char)keycode;
If e is the variable parameter of the KeyEvent, use
e.getKeyText(e.getKeyCode())
But preferably use it in a static context of KeyEvent
KeyEvent.getKeyText(e.getKeyCode())
It returns a string but you can cast to or get value of string returned in other parsable data types