void (KeyEvent e) { myMouseEvent = null; //Mnemonics if (e.isAltDown()) { super.processKeyEvent(e); return; } if (e.getKeyCode() == VK_TAB) { if (e.getID() == KEY_PRESSED) { final KeyboardFocusManager keyboardFocusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); if (e.isShiftDown()) { keyboardFocusManager.focusPreviousComponent(this); } else { keyboardFocusManager.focusNextComponent(this); } } e.consume(); return; } super.processKeyEvent(e); }