I can move up and down with the keyboard keys but i cannot get the enter event correct
**Controller**
$scope.myFunction = function()
{
    alert('sadsad');
    alert('hi');
}
**Also i added directive like this** 
.directive('ngEnter', function () 
    {
        restrict:'use strict';
        return {
           link: function (scope, elements, attrs) {
              elements.bind('keydown keypress', function (event) {
                  if (event.which === 13) {
                      scope.$apply(function () {
                          scope.$eval(attrs.ngEnter);
                      });
                      event.preventDefault();
                  }
              });
           }
        };
    });
  **Below is the view code on which i m calling directive and function**
<tr  class="find"ng-repeat="busServices in  " ng-click="setSelected(busServices.bus_travel_id,this.busServices,$event)"  ng-class="{selectedsd:busServices.bus_travel_id === idSelected}" ng-mouseover="ShowHideBoarding($event,this.busServices,true)" ng-mouseleave="ShowHideBoarding($event,false)" ng-init="($first) ? setSelected(busServices.bus_travel_id,this.busServices) : ''" ng-enter="myFunction()"></tr>
ng-enter doesnt get called at all. what can i do so that ng enter can work.
 
    