please see this question.
The initial question was solved, and I have a method in my extension.
I want that when the user installs the extension, a keyboard-shortcut should be installed as well, and should run the method when pressed.
How do I do this?
You can add shortcuts to the .vsct file. This file is created automatically in the wizard when you generate a new extension and say it will have a menu command. To add it manually:
More resources: