### Godot version

4.2.beta.custom_build [51f81e1c8]

### System information

macOS 11.0+

### Issue description

I could sense a recent merging of a few pull requests on here:

<img width="865" alt="image" src="https://github.com/godotengine/godot/assets/1129695/1cf7d144-a4d2-4514-abca-1405222e702a">

This bug has the following related merges as the most recent ones:

https://github.com/godotengine/godot/pull/80813
https://github.com/godotengine/godot/pull/80939

The pull requests are for reviving onion-skinning capabilities, but this causes a minor unexpected result (see Steps to reproduce)



### Steps to reproduce

## A. Use 4.2.beta.custom_build [51f81e1c8]

1. Obtain the attached minimal reproduction project
2. Select the AnimationPlayer node
<img width="1468" alt="image" src="https://github.com/godotengine/godot/assets/1129695/ca16d7a6-7690-45b4-b8f9-b12fded64ca4">
3. In the Animation panel, click "Edit" to find your shortcuts for "Go to Next Step" and "Go to Previous Step"
<img width="410" alt="image" src="https://github.com/godotengine/godot/assets/1129695/a708e196-2eb9-42ea-bf0e-fd0aa88a9e60">
4. Use the shortcuts to spam go back and forth the animation

Expected result: animation goes smoothly

https://github.com/godotengine/godot/assets/1129695/c24c498c-7f77-4cc9-a1c9-a1627d89c58b



Actual result: animation jumps crazily


https://github.com/godotengine/godot/assets/1129695/947bf5b4-a0ab-42d4-bb5b-201800b4bdc6


https://github.com/godotengine/godot/assets/1129695/65303cd0-8c2d-4a35-9d16-c94752ac2e3a




## B. My successful yet unverified fix attempt on 4.2.beta.custom_build [51f81e1c8]

Either by:

<img width="831" alt="image" src="https://github.com/godotengine/godot/assets/1129695/80d167ae-27e7-4ec4-a4c9-ffc7adc0353f">


Or by:

<img width="806" alt="image" src="https://github.com/godotengine/godot/assets/1129695/2bae8697-8ef3-48dc-9f0a-2b5fe568ed43">


I don't see any negative impact on Onion Skinning or other functions by the above fix attempt, but I am not sure, I need someone to help me verify this.



### Minimal reproduction project

[gd_anim_unittest_1.zip](https://github.com/godotengine/godot/files/12909805/gd_anim_unittest_1.zip)






edit->set_flat(false);
	edit->set_disabled(true);
	edit->set_tooltip_text(TTR("Animation properties."));
	edit->get_popup()->add_item(TTR("Copy Tracks"), EDIT_COPY_TRACKS);
	edit->get_popup()->add_item(TTR("Paste Tracks"), EDIT_PASTE_TRACKS);
	edit->get_popup()->add_separator();
	edit->get_popup()->add_item(TTR("Scale Selection"), EDIT_SCALE_SELECTION);
	edit->get_popup()->add_item(TTR("Scale From Cursor"), EDIT_SCALE_FROM_CURSOR);
	edit->get_popup()->add_separator();
	edit->get_popup()->add_item(TTR("Make Easing Selection"), EDIT_EASE_SELECTION);
	edit->get_popup()->add_separator();
	edit->get_popup()->add_shortcut(ED_SHORTCUT("animation_editor/duplicate_selection", TTR("Duplicate Selection"), KeyModifierMask::CMD_OR_CTRL | Key::D), EDIT_DUPLICATE_SELECTION);
	edit->get_popup()->add_shortcut(ED_SHORTCUT("animation_editor/duplicate_selection_transposed", TTR("Duplicate Transposed"), KeyModifierMask::SHIFT | KeyModifierMask::CMD_OR_CTRL | Key::D), EDIT_DUPLICATE_TRANSPOSED);
	edit->get_popup()->add_shortcut(ED_SHORTCUT("animation_editor/add_reset_value", TTR("Add RESET Value(s)")));
	edit->get_popup()->add_separator();
	edit->get_popup()->add_shortcut(ED_SHORTCUT("animation_editor/delete_selection", TTR("Delete Selection"), Key::KEY_DELETE), EDIT_DELETE_SELECTION);
	edit->get_popup()->add_separator();
	edit->get_popup()->add_shortcut(ED_SHORTCUT("animation_editor/goto_next_step", TTR("Go to Next Step"), KeyModifierMask::CMD_OR_CTRL | Key::RIGHT), EDIT_GOTO_NEXT_STEP);
	edit->get_popup()->add_shortcut(ED_SHORTCUT("animation_editor/goto_prev_step", TTR("Go to Previous Step"), KeyModifierMask::CMD_OR_CTRL | Key::LEFT), EDIT_GOTO_PREV_STEP);
	edit->get_popup()->add_separator();
	edit->get_popup()->add_shortcut(ED_SHORTCUT("animation_editor/apply_reset", TTR("Apply Reset")), EDIT_APPLY_RESET);
	edit->get_popup()->add_separator();
	edit->get_popup()->add_item(TTR("Bake Animation"), EDIT_BAKE_ANIMATION);
	edit->get_popup()->add_item(TTR("Optimize Animation (no undo)"), EDIT_OPTIMIZE_ANIMATION);
	edit->get_popup()->add_item(TTR("Clean-Up Animation (no undo)"), EDIT_CLEAN_UP_ANIMATION);
	edit->get_popup()->connect("id_pressed", callable_mp(this, &AnimationTrackEditor::_edit_menu_pressed));
	edit->get_popup()->connect("about_to_popup", callable_mp(this, &AnimationTrackEditor::_edit_menu_about_to_popup));
	pick_track = memnew(SceneTreeDialog);
	add_child(pick_track);
	pick_track->register_text_enter(pick_track->get_filter_line_edit());