This conversion was done with the help of gtk4-builder-tool.
Instead of hardcoding an accelerator in the ui file, use gtk_application_set_accels_for_action.
This example demonstrates property actions and object binding.