Process to create a new keybind

Heyo, I’m trying to create a custom keybind in the source code to execute code for a off screen eyedropper, as It seemed like it would be a better method then rewriting how Aseprite handles click events. However I’m a bit lost as to how exactly I can create a custom keybind. I’m looking through commands.cpp and I have no idea how to link my custom command to a keybind?

Adding what I’ve done so far, this is roughly what I’ve done
In the commands folder, created cmd_my_custom.cpp

I know it will crash if it works, I just want to instantly know if it’s working or not.

I’ve added to gui.xml (Removed the >< symbols because it wouldn’t copy)
” key command=“MyCustomCommand” shortcut=“Alt+K” mac=“Cmd+Alt+K”/ “

to the Commands CMakeLists.txt

“commands/cmd_my_custom.cpp”

for it’s target sources

and in the commands_lists.h
”FOR_EACH_COMMAND(MyCustom)”

This currently compiles but my command doesn’t run, and because so much of this code transcription stuff is generated through production I’m completely lost on what exactly I’m missing from this logic.