### Godot version

v4.0.beta10.official [d0398f62f]

### System information

Windows 11

### Issue description

When hovering over the `MenuBar` items - the hover state activates only once (on first hover).

As demonstrated in this video - Debug menu toggles to hover visual style only once:


https://user-images.githubusercontent.com/433527/209774611-a3d6d80b-deb2-466b-b39d-bb480a5ade17.mp4

### Steps to reproduce

See video, try the same in Godot editor.

### Minimal reproduction project

N/A
#include "menu_bar.h"
#include "core/os/keyboard.h"
#include "scene/main/window.h"
void MenuBar::gui_input(const Ref<InputEvent> &p_event) {
	ERR_FAIL_COND(p_event.is_null());
	if (is_native_menu()) {
		
		return;
	}
	MutexLock lock(mutex);
	if (p_event->is_action("ui_left", true) && p_event->is_pressed()) {
		int new_sel = selected_menu;
		int old_sel = (selected_menu < 0) ? 0 : selected_menu;
		do {
			new_sel--;