### Godot version

4.2.stable (most likely over versions aswell)

### System information

Godot v4.2.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 Ti (NVIDIA; 31.0.15.4592) - AMD Ryzen 7 5800X 8-Core Processor (16 Threads)

### Issue description

When creating a custom InputEventJoypadButton resource, you are able to configure what the button actually is. In the list, that appears of every single button, however because the list is so large, it cannot fit onto the screen vertically, and therefore cannot be closed, forcing the whole engine to be closed through task manager. This problem also applies to the InputEventJoypadMotion Resource too.

### Steps to reproduce

Create a new InputEventJoypadButton or InputEventJoypadMotion Resource.
Select the configure button, which will display a list of all possible buttons.
Observe how the popup menu is so big, it cannot be closed. double clicking a selection dosent close the menu either.

### Minimal reproduction project

n/a
return;
			}
		} else if (joyb.is_valid() || joym.is_valid() || mb.is_valid()) {
			show_device = true;
			_set_current_device(event->get_device());
		}
		mod_container->set_visible(show_mods);
		device_container->set_visible(show_device);
		key_mode->set_visible(show_key);
		additional_options_container->show();
		
		Ref<InputEventKey> ko = p_original_event;
		if (ko.is_valid()) {
			if (ko->get_keycode() == Key::NONE) {
				if (ko->get_physical_keycode() != Key::NONE) {
					ko->set_keycode(ko->get_physical_keycode());
				}
				if (ko->get_key_label() != Key::NONE) {
					ko->set_keycode(fix_keycode((char32_t)ko->get_key_label(), Key::NONE));
				}
			}
			if (ko->get_physical_keycode() == Key::NONE) {
				if (ko->get_keycode() != Key::NONE) {
					ko->set_physical_keycode(ko->get_keycode());
				}
				if (ko->get_key_label() != Key::NONE) {
					ko->set_physical_keycode(fix_keycode((char32_t)ko->get_key_label(), Key::NONE));
				}
			}
			if (ko->get_key_label() == Key::NONE) {