void (JTable table) { InputMap inputMap = table.getInputMap(WHEN_FOCUSED); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_END, 0), TableActions.CtrlEnd.ID); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, 0), TableActions.CtrlHome.ID); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, InputEvent.SHIFT_DOWN_MASK), TableActions.CtrlShiftHome.ID); inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_END, InputEvent.SHIFT_DOWN_MASK), TableActions.CtrlShiftEnd.ID); }