2 buttons 4 functions help

Yes
what i have been doing is
loopmode is a long press that lets you use the functionality of 2 buttons, on a press
button 1 > switchcase menu.
button2> is a counter from 1 - 99.
now if the mode was changed to say loopmode
button 1 would say turn on relay( relay1)
button 2 would let you turn on relay 2.

im not even sure if the second mode can be done like this, but the first one works.
so i was just developing it on from the first mode.

thanks for the reply