I think this is how you do it. On the input page, set OEM Trigger#1 to your external switch. Then, on the hotkeys page, set the trigger #1 code to 1021.
You might want to read through the customization Wiki at www.machsupport.com
All the codes can be found there.