Try a while loop instead of the for loop

Code:
while buttonx=1
 run motor
 pause something
wend
Of course you need 2 of these, just like you have 2 for..next