User defined keys

Is there a way to connect the launching of a global method to a user keystroke (such as Ctrl-A)?