### Godot version

4.0.stable

### System information

Windows 10, Forward+, GTX 1070 driver 528.49

### Issue description

When trying to edit the handle mode of a bezier cruve key from the inspector tab, the mode doesn't change. It works fine when right clicking on the key and setting the handle mode from here though. 

https://user-images.githubusercontent.com/24484962/222379540-29d71b6d-ff0c-4a21-9905-9750d0581fda.mp4



### Steps to reproduce

On an animation track using a bezier curve, select a key and try to change the handle mode from the inspector tab

### Minimal reproduction project

N/A
NodePath np = value;
	if (np == NodePath()) {
		return;
	}
	Node *root = EditorNode::get_singleton()->get_tree()->get_root();
	Node *np_node = root->get_node(np);
	ERR_FAIL_NULL(np_node);
	Node *edited_node = root->get_node(base);
	ERR_FAIL_NULL(edited_node);
	value = edited_node->get_path_to(np_node);
}
void AnimationTrackKeyEdit::_update_obj(const Ref<Animation> &p_anim) {
	if (setting || animation != p_anim) {
		return;
	}
	notify_change();
}
void AnimationTrackKeyEdit::_key_ofs_changed(const Ref<Animation> &p_anim, float from, float to) {
	if (animation != p_anim || from != key_ofs) {
		return;
	}
	key_ofs = to;
	if (setting) {
		return;
	}
	notify_change();
}
bool AnimationTrackKeyEdit::_set(const StringName &p_name, const Variant &p_value) {