You guessed it, but…
If you use a Mac, then through AppleScript, Bome Midi Translator Pro (BMTP) and SendMidi you can create all kinds of macros.
On Windows, an equivalent to BMTP and AppleScript is AutoHotKey. You’ll also need loopMIDI (because on Windows, creating a virtual MIDI port is not native to the OS, as it’s the case with macOS).
On both operating systems, you’ll need a software called Open Stage Control (to map the macros to different buttons on a GUI (Graphical User Interface), and even on a second keyboard (a keyboard that is plugged into the computer running the client).