I'm getting an error on keydown_arrow in the Prototype version. It looks like you forgot this line here:

`actives = @search_results.select("li.active-result")`