rem: .blur(function() { if (timeout) clearTimeout(timeout); timeout = setTimeout(hide, 200); }) 
add: input.keydown(function(e) { switch(e.keyCode) { case 27: hide(); break; case 38: case 40: e.preventDefault(); if (results) { var items = $("li", results); if (!items) return; var index = selectedIndex + (e.keyCode == 38 ? -1 : 1); if (index >= 0 && index < items.length) { move(index); } } else { show(); } break; case 9: case 13: case 39: if (results) { var li = $("li.selected", results); if (li.length) { select(li); e.preventDefault(); } } break; default: if (timeout) clearTimeout(timeout); timeout = setTimeout(show, delay); break; } }); 
context:     .blur(function() {      if (timeout) clearTimeout(timeout);      timeout = setTimeout(hide, 200);    })
meta: 2557	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2557/ec175125151132e27d1156f40f74eacc8c511014/suggest.js/clean/htdocs/js/suggest.js