static int charToKeyCode(char c) { c = lower(c); assertTrue(c >= 'a' && c <= 'z'); ret charDiff(c, 'a')+KeyEvent.VK_A; }