Keyboard Maestro is one of the excellent software tools that I use daily. The power to configure and customize keystrokes is a godsend. I'm not affiliated, merely a very satisfied customer for years.
Seconded. This is great software sold the old-fashioned way: pay once and upgrade when you want to.
The lovely lack of mental friction around this model is something I miss dearly, as opposed to endless subscriptions. But this is probably because I am an old guy and haven't adapted to our new reality.
As far as KM goes, it's so well done. Very complete. Great for any one off key combos you want to add, but can do a ridiculous amount more. AND it's very well documented.