Can/How(can) I create an "onenter" function.

Can/How(can) I create an "onenter" function.

Hello,

We have a 3rd party autosuggest script file. It is creating a div and adding an <a> element in the div.

It has an onclick function:
(From the added <a> element) a.onclick = function () { pointer.setHighlightedValue(); return false; }

Is there a way in $ to create an "onenter" function within the added <a> element. A clients want to be able to select the autosuggest using the "enter" key