You can do this in QMK too if you have a custom mechanical keyboard. It'll work regardless of machine or os then.
Though, I'd encourage a custom keyboard where the thumb can reach 2-3 keys each (instead of only really being able to hit the spacebar). That way, you can put Esc on a thumb key. -- e.g. ZSA's moonlander or planck ez are nice.