What about using AltTab?

https://github.com/lwouis/alt-tab-macos