The examples uses the onKeyDown event for the document. I believe that there is an onKeyDown for each input element. So you could add the OnKeyDown=procname in each element that you want to implement the CR functionality. More code, but it should be closer to what you're looking for.