keyboard shortcut in add-on preferences

If anyone can help me on this : I’m trying to add a default shortcut and lay it out in the add-ons preferences but I can’t get it to work.
I took and modified pieces of code from Pitiwazou’s SpeedRetopo.
Here’s the diff showing these added lines in green.

Nevermind, I solved it.

Please tell how you solved it so people with the same problem can solve it too when searching the forum and finding this thread.

Don’t worry, when my add-on is ready I will link it here so people can use it as a template if it fits their needs.

Haha, I completely forgot.
Here’s the add-on:

Ctrl+F “# Hotkeys layout”, that’s the main piece. Then every part that has “hotkey” in it.
No idea if it applies to 2.8.