BetterTouchTool has a lot of overlap with AHK I believe. Lets you remap keyboard/mouse actions globally and/or per application and perform actions or run scripts on keyboard/mouse input ands lots of features of that kind.
(Never used AHK myself but the couple times I looked for something similar to BetterTouchTool on Windows I got recommended AHK)
As someone who has used both, that's not entirely off-base, though the details are very different: AHK is better at lower-level keyboard remapping and related I/O — you really need to combine BTT with something like Karabiner-Elements for more than rough equivalence here — but BTT is much better than AHK for out-of-box support for non-keyboard event triggers, with native support for mouse button-press events[1], trackpad and Magic Mouse gestures, touch bar, Siri remote, MIDI messages, hot corners, BT LE proximity events, all manner of system events (battery status, lock/unlock, Apple Events, distributed notifications, etc.), scheduled and recurring timer events, and the list goes on.
[1] Including support for all buttons on n-button mice for all values of n supported by USB standards, something that, last I checked, Windows itself was incapable of handling at the driver level without dropping down to low-level HID event processing that's a bit of a stretch, though not technically impossible, for AHK.
This, incidentally, is why many-buttoned Logitech gaming mice come preconfigured to send keyboard events for all but the first few buttons.
(Never used AHK myself but the couple times I looked for something similar to BetterTouchTool on Windows I got recommended AHK)