That is very simple. First, ensure that the option "Enable customizable menu shortcuts" is enabled on the "Other" preferences page, then, suppose you want to assign a shortcut key to a function, e.g. sending all mail out should start when you press
...
more