Here is a better one and excuse my english as its not my native
`-----------MAKE BUTTON (C)------------
if keystate(46) > 0 and BUTTON_C = 0 then BUTTON_C = 1
if BUTTON_C = 1
BUTTON_C = 2
`---------------------
REM ANYTHING YOU DO HERE WILL BE DONE FOR ONCE ONLY
`---------------------
inc STATEMENT_C, 1
if STATEMENT_C > 1 then STATEMENT_C = 0
endif
if keystate(46) = 0 then BUTTON_C = 0
if STATEMENT_C = 1
`---------------------
REM ANYTHING YOU DO HERE WILL BE LOOPED AS STATEMENT_C is 1
`---------------------
endif
Also you can set as many statements as you want with following changes, anytime you press the keystate(46) the statement will increase
`-----------MAKE BUTTON (C)------------
if keystate(46) > 0 and BUTTON_C = 0 then BUTTON_C = 1
if BUTTON_C = 1
BUTTON_C = 2
`---------------------
REM ANYTHING YOU DO HERE WILL BE DONE FOR ONCE ONLY
`---------------------
inc STATEMENT_C, 1
if STATEMENT_C > 10 then STATEMENT_C = 0 ` increase how many statements you want changing (10)
endif
if keystate(46) = 0 then BUTTON_C = 0
if STATEMENT_C = 1
`---------------------
REM ANYTHING YOU DO HERE WILL BE LOOPED AS STATEMENT_C is 1
`---------------------
endif
if STATEMENT_C = 2
`---------------------
REM ANYTHING YOU DO HERE WILL BE LOOPED AS STATEMENT_C is 2
`---------------------
endif