How do I add a hotkey to an addon?

All addons have a python path or something right?
How do I use that to create a hotkey?

The “Keymap” section of this tutorial should help, I just used it yesterday.

Thank you.