question: public static String keyStrokeToText ( KeyStroke keyStroke ) { String mod = KeyEvent . getKeyModifiersText ( keyStroke . getModifiers ( ) ) ; String key = KeyEvent . getKeyText ( keyStroke . getKeyCode ( ) ) ; if ( mod . isEmpty ( ) ) { return key ; } return mod + "+" + key ; }
target:  Turns a KeyStroke into a readable String.