Do something like this: (this is in pseudo-code)
Code:
global variable FirstActivated initialized to 0
Check if first button is press
If it is, toggle the state of FirstActivation (I.E. if it is 1 then make it 0; if it is 0 then make it 1)
Check if FirstActivated is 1
If it is, do what ever you want to do here.
Check if Second button is pressed.
If it is, check if FirstActivated is 0
If is is, then do your second button action.