Can I use KM to prevent an app from overriding a system default keyboard shortcut?

I find some apps overriding some system default keyboard shortcut like "Move focus to active or next window". Can I use KM to solve this like using a KM shortcut to do the same operation (by apple script?) but overriding anything?

The actual problem I really want to solve is to change focus between several windows as I usually split the monitor to 2-4 windows to do my work. The "Move focus to active or next window" can do this but it will also move to other windows hidden behind current windows and cannot move back. Does KM have a better solution for this?

Thanks.

Are you aware of this KM action:

If you keep track of the windows that you need to switch between, perhaps in a text variable, perhaps one name on each line, them a little bit of KM code could rotate between those windows bringing them to the front in an alternating pattern.

This is just an idea, not a complete solution.

I am interested in a full solution to this.

I work with both UK and US keyboard layouts, which have different set-ups for this shortcut. I could re-map the keys with Karabiner, but I would then mix up the single keys when I need them.

If I can get KM to manage the "Move focus to active or next window" shortcut, instead of MacOS, I could simply let it activate with both US keyboard and UK keyboard hotkeys.

Any help much appreciated

Can you share what you have so far?

Try to set it up with KM.

otherwise, if the keys are different, I'd go with Karabiner, as you can change the keys by specific keyboard.