title: Keypress in Angular-UI
body: <p>I am running into some problems using the keypress as follows-</p>
  
  <pre><code>&lt;div ng-controller="GBNController"&gt;
  ...
  &lt;input id="search-field" type="text" placeholder="JSON Query" ng-model="queryText" ui-keypress="{enter: foo()}"/&gt;
  ...
  &lt;/div&gt;
  </code></pre>
  
  <p>and my javascript has -</p>
  
  <pre><code>var AngApp = angular.module('gbn', ['ui']);
  var GBNController = function($scope) {
      $scope.queryText = '';
      $scope.foo = function() {
          alert('test');
      }
  };
  </code></pre>
  
  <p>Now this function foo is called only when the document is loaded and then after that, the <code>return</code> keypress event in the text field is never handled.</p>
  
  <p>I am using the current <a href="https://github.com/angular-ui/angular-ui/tree/1d831cdf891dcbe9c1c2e7d95cd5c17f2b97fe69" rel="nofollow">head</a> of the master branch.</p>
  
  <p>Am I doing something wrong here, or is this broken??</p>