input = 0 while (1) { while (input == 0) { input = getkey } print(input) input = 0 }