docs: def send_keystrokes(ip, keystrokes, wait=False):
          """Connects to TV and sends keystroke via HTTP."""
          tv_url = 'http://{}:6095/controller?action=keyevent&keycode='.format(ip)
  
          for keystroke in keystrokes:
              if keystroke == 'wait' or wait is True:
  
                  time.sleep(0.7)
              else:
                  request = requests.get(tv_url + keystroke)
  
                  if request.status_code != 200:
                      return False
  
          return True