title: ng-keydown event of angularjs ,the value of which key pressed,before displaying the value of key pressed
body: <p>I want to format an input number on key down event,but need to check whether it is a number including a dot(.) and not any other symbols, which I need to verify, before it displays in the input field.</p>
  
  <pre><code>&lt;div ng-controller = "MyCtrl1"&gt;
  &lt;label&gt;Enter a 4 digit number to format:&lt;/label&gt;
  &lt;input type ="text" ng-model="Number" ng-keydown ="update()" ng-blur ="updated()" maxlength="5"/&gt;&lt;br&gt;&lt;br&gt;
      &lt;span ng-show ="show"&gt;Please enter only numeric value.&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>