void (int keyCode, char keyChar, int asciiFirstKeyCode, int asciiLastKeyCode) { if (keyCode < asciiFirstKeyCode || asciiLastKeyCode < keyCode) return; if ('a' <= keyChar && keyChar <= 'z' || 'A' <= keyChar && keyChar <= 'Z') return; if (ourLLtoASCII.containsKey(keyChar)) return; char converted = (char)((int)'a' + (keyCode - asciiFirstKeyCode)); if (Character.isUpperCase(keyChar)) { converted = Character.toUpperCase(converted); } ourLLtoASCII.put(keyChar, converted); }