code: function searchFormKeyDown(e){
      e = e || window.event;
  
      // 27 = escape, so hide the form
      if(e.keyCode == 27){
        document.body.removeChild(document.getElementById('search'));
        searchBoxShown = false;
  
      // 40 = down arrow, select the next item
      }else if(e.keyCode == 40){
        selectNextItem();
        e.preventDefault();
        e.stopPropagation();
        return false;
  
      // 38 = up arrow, select the previous item
      }else if(e.keyCode == 38){
        selectPreviousItem();
        e.preventDefault();
        e.stopPropagation();
        return false;
  
      // Most likely a letter typed or deleted in the search box.
      // So queue another search
      }else{
        clearTimeout(searchingTimeout);
        searchingTimeout = setTimeout(doSearch, 150);
      }
    }
docs: ## searchFormKeyDown
  
  Fired whenever a key is pressed on the search form and triggers
  the necessary events
  
  @param {KeyDownEvent} e The event object