repeat <необходимые действия> local pressed = false for k = 0 until 255 if keyhit(k) pressed = true exit endif nextuntil pressed