Custom keyboard layout?

Hello,

I’d like to create custom keyboard layout KanoOS (based on ‘generic’ layout).
Any clues how to start ?

Regards,
M