text: #!/usr/bin/env python
  import keybow
  import time
  
  
  @keybow.on()
  def handle_key(index, state):
      print("{}: Key {} has been {}".format(
          time.time(),
          index,
          'pressed' if state else 'released'))
  
      if state:
          keybow.set_led(index, 255, 0, 0)
      else:
          keybow.set_led(index, 0, 0, 0)
  
  
  while True:
      keybow.show()
      time.sleep(1.0 / 60.0)
  