### Godot version

3.5.1, 4.0 beta 10

### System information

Windows 10

### Issue description

I tried to set a shortcut for `Reparent to New Node`, but the shortcut doesn't trigger. As it's closest neighbour, I tried setting the same shortcut for `Reparent` without problems.

### Steps to reproduce

* Set editor shortcut for `Reparent to New Node` (I set it as Ctrl+G as to group nodes together, but anything is fine - it's not about conflicting shortcut)
* Select a node and press your chosen hotkey

### Minimal reproduction project

N/A (any project is fine, requires modifying editor settings anyway)
HashSet<int> &ran = r_rem_anims->find(anim)->value;
						for (int i = 0; i < anim->get_track_count(); i++) {
							ran.insert(i);
						}
					}
					HashSet<int> &ran = r_rem_anims->find(anim)->value;
					if (anim.is_null()) {
						continue;
					}
					for (int i = 0; i < anim->get_track_count(); i++) {
						NodePath track_np = anim->track_get_path(i);
						Node *n = root->get_node_or_null(track_np);
						if (!n) {
							continue;
						}
						if (!ran.has(i)) {
							continue; 
						}
						HashMap<Node *, NodePath>::Iterator found_path = p_renames->find(n);
						Ref<EditorUndoRedoManager> &undo_redo = EditorNode::get_undo_redo();
						if (found_path) {
							if (found_path->value == NodePath()) {
								
								int idx = 0;
								HashSet<int>::Iterator EI = ran.begin();
								ERR_FAIL_COND(!EI); 
								while (*EI != i) {
									idx++;
									++EI;
									ERR_FAIL_COND(!EI);