void (KeyEvent e) { if (e.isShiftDown()) { if (e.getKeyCode() == KeyEvent.VK_DOWN) { list.dispatchEvent(e); e.consume(); } if (e.getKeyCode() == KeyEvent.VK_UP) { list.dispatchEvent(e); e.consume(); } } }