sorry i should have been more detailed i did not notice that you are just starting out
lets name the object 'button'
create an instance variable for it . make a Boolean named 'touched' and set it false.
if touching 'button' ......... set 'touched' to true
you can set whatever you want here as well like opacity,to show that is pressed
if inverted touching 'button' (right click to see the inverted command)
is 'touched' ......... go to layout 'blah blah'
trigger once while true .......... set 'touched' to false
here you do not need the trigger once since we are using the boolean to filter out the situation but if you use an in game touch button for example for the player to swing a sword and when it is released to do something else it is needed otherwise it will check as true forever since you are not touching the button