boolean (AnActionEvent e) { final var c = getContextComponent(); final var inputEvent = e.getInputEvent(); if ( inputEvent instanceof KeyEvent && c instanceof JTable && ((JTable)c).isEditing() && !(inputEvent.getComponent() instanceof ActionButtonComponent) // action button active in any case in the toolbar ) { return false; } else { return true; } }