shortcuts bound with UI_COMMAND fail to trigger in UE5?

I bind actions to menu buttons using UI_COMMAND , manual clicking works fine, but shortcuts fail to trigger the actions.
I found a solution using LevelEditorModule.GetGlobalLevelEditorActions()->Append(Commands.ToSharedRef()); , but this function belongs to the editor module and cannot be used in the packaged build.
Does anyone know how to make shortcuts work properly in the packaged build?
Thanks a lot