{"action":"closed","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/13559","labels_url":"https://api.github.com/repos/angular/angular.js/issues/13559/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/13559/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/13559/events","html_url":"https://github.com/angular/angular.js/issues/13559","id":122529937,"number":13559,"title":"ng-keypress not work in firefox","user":{"login":"brunocascio","id":2397875,"avatar_url":"https://avatars.githubusercontent.com/u/2397875?v=3","gravatar_id":"","url":"https://api.github.com/users/brunocascio","html_url":"https://github.com/brunocascio","followers_url":"https://api.github.com/users/brunocascio/followers","following_url":"https://api.github.com/users/brunocascio/following{/other_user}","gists_url":"https://api.github.com/users/brunocascio/gists{/gist_id}","starred_url":"https://api.github.com/users/brunocascio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunocascio/subscriptions","organizations_url":"https://api.github.com/users/brunocascio/orgs","repos_url":"https://api.github.com/users/brunocascio/repos","events_url":"https://api.github.com/users/brunocascio/events{/privacy}","received_events_url":"https://api.github.com/users/brunocascio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-16T15:31:56Z","updated_at":"2016-01-04T19:22:25Z","closed_at":"2016-01-04T19:22:25Z","body":"Hi!\r\n\r\nI'm trying to use `ng-keypress=\"function($event)\"` but in firefox the `$event.keyCode()` always return `0` or `8`.\r\n\r\nFor now, i'm using `ng-keyup=\"function($event)\"` and works fine.\r\n\r\nSome code:\r\n\r\n```\r\n<input autofocus type=\"text\" ng-model=\"userWrite\" ng-keypress=\"controlWords($event)\"  />\t\t\r\n```\r\n\r\n```\r\n$scope.controlWords = function(e){\r\n   console.log(e.keyCode); // in firefox always return 0 or 8, in chrome works fine.\r\n}\r\n```\r\n\r\nNote: I'm using AngularJS `v1.4.8`"}}