First, create a variable object. Then draw the first button – as a text frame. Set the action On tap to switching the variable object to state number 1.
Duplicate button, slide it aside (use keyboard shortcuts Alt + arrow), change the text and change the On tap action. In similar way you may create all buttons: