What you want to do is have the button set as a VB button, you need to do that in the screen editor you use. Once done then you can open in Mach and edit the button by going to the Operator menu then Edit Button Script. The button will be flashing, click it and the editor will open.
What script you have will depend whether your switches share an input or not but either way the safest would be
Do OemButton(1024)
While IsMoving()
Wend
Do OemButton(1022)
While IsMoving()
Wend