key response setting
while ()
  need explicitly break