String (KeyStroke fst) { String text = KeyStrokeAdapter.toString(fst); int offset = text.lastIndexOf(' '); if (offset == -1) offset = 0; return text.substring(0, offset) + StringUtil.toUpperCase(text.substring(offset)); }