while 1 b=button() if b then break vsync wend または until vsync repeat button() こんな感じかな? 前者(while~)は、かなり応用が効く書き方なので、フレーズとして覚えておくと便利ですよ