SynEdit has / has this feature in SynEditKey * files. * (I myself look at version 1.03), I finish with the editor for shortcuts. You may not be able to simply integrate them into your application, but the code will hopefully provide some recommendations.