### 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
{
				float time_min = 0;
				float time_max = animation->get_length();
				for (int i = 0; i < animation->get_track_count(); i++) {
					if (animation->track_get_key_count(i) > 0) {
						float beg = animation->track_get_key_time(i, 0);
						if (beg < time_min) {
							time_min = beg;
						}
						float end = animation->track_get_key_time(i, animation->track_get_key_count(i) - 1);
						if (end > time_max) {
							time_max = end;
						}
					}
				}
				float extra = (zoomw / scale) * 0.5;
				time_max += extra;
				set_min(time_min);
				set_max(time_max);
				if (zoomw / scale < (time_max - time_min)) {
					hscroll->show();
				} else {
					hscroll->hide();
				}
			}
			set_page(zoomw / scale);
			int end_px = (l - get_value()) * scale;
			int begin_px = -get_value() * scale;
			Color notimecol = get_theme_color(SNAME("dark_color_2"), EditorStringName(Editor));
			Color timecolor = color;