old_contents: import Inputkey
  
  key = Inputkey.get()
  if 27 == ord(key):
      exit()
  
  while True:
      key = Inputkey.arrow_get()
      if key == 'esc':
          exit()
      else:
          print(key)
  
new_contents: import Inputkey
  
  ARROW = 3
  NOMAL = 1
  
  key = Inputkey.get(NOMAL)
  if 27 == ord(key):
      exit()
  
  while True:
      key = Inputkey.get(ARROW)
      if key == 'esc':
          exit()
      else:
          print(key)
  
subject: Update test.py