Defining hot keys is extraordinary!
When I work with documents - I want to select the styles very fast, so I define hot keys for them. Unfortunatelly, if the hot key is somwhere defined I get the message "already in use".
It is diferrent from general hot key definition dialog, where the system asks if I want to loose previous assignment.
It is only one IF in your code which would help a lot!