title: How to keypress in AngularJS
body: <p>I have the following code:</p>
  
  <p>index.html:</p>
  
  <pre><code>&lt;a href="" class=”buttonone" ng-click="tool.disc()"&gt;
      &lt;i class=”buttonone"&gt;&lt;/i&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>controller.js:</p>
  
  <pre><code>angular.module(’app')
  </code></pre>
  
  <p>How can I make so that when someone presses a keystroke example 'enter key' the tool.disc() method gets triggered? I suppose I can use angularjs ngKeydown directive but I dont know how to implement it in the code example above. Could someone try to help? Thanks!</p>