text: def do_thing(event):
      if event.action == 'pressed':
          print('You pressed me')
          if event.direction == 'up':
              print('Up')
          elif event.direction == 'down':
              print('Down')
      elif event.action == 'released':
          print('You released me')
  