I believe you are looking for the Activity Sequence feature under Activity > Customize Buttons > Add Sequence. You can have up to 10 sequences in an activity, and each sequence can have up to 5 commands from any participating device. Once you have created the sequence, you name it and then you can map it to any key.