Make enter key work for non-angular

Minor nit: Could you move these functions to somewhere up around line 395, so it's close to the `click` event handlers?