You can use the "Device State" tab of the "Begin a Conditional (If Statement) Block" or "Loop Start" actions to check whether a given joystick button is pressed.
If you trigger a command using the first action in your sequence (E.G. POV 1 up), you can use a waiting loop so you have time to release the trigger button and press another button, E.G.
Start Loop While : Joystick 1 POV 1 Button 1 Is Pressed
End Loop
Start Loop While : Joystick 1 No Button Is Pressed
End Loop
Begin Device State Check : Joystick 1 POV 1 Button 2 Is Pressed
Write [Blue] 'Button sequence detected' to log
End Condition
The first loop will wait for you to release the button the triggered the command (substitute the correct button numbers for your device), then the second loop will wait until another button is pressed, the condition then checks whether that button is the second one in the sequence, and will execute the actions within its begin and end actions.
Do note that the loops will keep running until another button is pressed; If you want to use a timeout to stop the second loop after no button has been pressed within the allotted time, you can do something like
Start Loop While : Joystick 1 POV 1 Button 1 Is Pressed
End Loop
Set date [~timeout] to [~timeout] plus [1000] milliseconds
Start Loop While : Joystick 1 No Button Is Pressed OR [~timeout] Is Greater Than Current Date/Time
End Loop
Begin Device State Check : Joystick 1 POV 1 Button 2 Is Pressed
Write [Blue] 'Button sequence detected' to log
End Condition