code: def handle_keys(self, keys, raw):
          
          for j, k in enumerate(keys):
              if self.search is True:
                  text = "Search: {}".format(self.search_string)
                  if k == 'enter':
                      # Catch 'enter' key to prevent opening URL in mkbrowseto
                      self.enter = True
                      if not self.items:
                          self.search = False
                          self.enter = False
                      if self.search_string:
                          footer = 'search'
                      else:
                          footer = 'default'
                          text = ""
                      footerwid = urwid.AttrMap(urwid.Text(text), footer)
                      self.top.footer = footerwid
                  elif k in self.activate_keys:
                      self.search_string += k
                      self._search()
                  elif k == 'backspace':
                      self.search_string = self.search_string[:-1]
                      self._search()
              elif k in self.activate_keys and \
                      self.urls and \
                      self.search is False and \
                      self.help_menu is False:
                  self._open_url()
              elif self.help_menu is True:
                  self._help_menu()
                  return []
              if k == 'up':
                  # Works around bug where the up arrow goes higher than the top list
                  # item and unintentionally triggers context and palette switches.
                  # Remaps 'up' to 'k'
                  keys[j] = 'k'
              if k == 'home':
                  # Remap 'home' to 'g'. Works around small bug where 'home' takes the cursor
                  # above the top list item.
                  keys[j] = 'g'
          # filter backspace out before the widget, it has a weird interaction
          return [i for i in keys if i != 'backspace']
docs: Handle widget default keys
  
              - 'Enter' or 'space' to load URL
              - 'Enter' to end search mode
              - add 'space' to search string in search mode
              - Workaround some small positioning bugs