"Trim" Hotkey, Keyboard Shortcuts or Macro?

What is the procedure to Hotkey, Keyboard Shortcuts or Macro the "Trim"  command? (as in,weld, trim, create boundry, etc.)