### Godot version

4.1.beta.custom_build.824c139f6

### System information

EndeavourOs - Linux kernel 6.3.7-arch1-1

### Issue description

Pressing a button through an associated shortcut allow to ignore the button group attribute "allow_unpress".
Button can then be unpressed

The button properly stay pressed when you click on it, the issue seem to only come from "clicking it" with the shortcut

### Steps to reproduce

- Create multiple buttons linked with the same button group
- Associate a shortcut to each button
- Use the shortcut to "press" the already selected button

### Minimal reproduction project

[button_group_shortcut.zip](https://github.com/godotengine/godot/files/11745281/button_group_shortcut.zip)

for (BaseButton *E : buttons) {
		if (E->is_pressed()) {
			return E;
		}
	}
	return nullptr;
}
void ButtonGroup::set_allow_unpress(bool p_enabled) {
	allow_unpress = p_enabled;
}
bool ButtonGroup::is_allow_unpress() {
	return allow_unpress;
}
void ButtonGroup::_bind_methods() {
	ClassDB::bind_method(D_METHOD("get_pressed_button"), &ButtonGroup::get_pressed_button);
	ClassDB::bind_method(D_METHOD("get_buttons"), &ButtonGroup::_get_buttons);
	ClassDB::bind_method(D_METHOD("set_allow_unpress", "enabled"), &ButtonGroup::set_allow_unpress);
	ClassDB::bind_method(D_METHOD("is_allow_unpress"), &ButtonGroup::is_allow_unpress);
	ADD_PROPERTY(PropertyInfo(Variant::BOOL, "allow_unpress"), "set_allow_unpress", "is_allow_unpress");
	ADD_SIGNAL(MethodInfo("pressed", PropertyInfo(Variant::OBJECT, "button", PROPERTY_HINT_RESOURCE_TYPE, "BaseButton")));
}
ButtonGroup::ButtonGroup() {
	set_local_to_scene(true);
}