<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Angular ngKeypress</title>

  <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script>
  
</head>
<body ng-app="">
  <input ng-keypress="sayi = sayi + 1" ng-init="sayi=0">
  <span>keypress sayisi: {{sayi}}</span>
</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.