Where are an addons keyboard shortcuts handled and how can they be traced?

Is there a script that can go through the manifest.json files of all addons and list out their commands?

PS. I think I can do this myself if I master json. The important thing is learn from the API which addons are active and are compatible with the browser.