title: angular2 input text on enter key press is not working
body: <p>I have a form within it there is a text box which allow user to search something. Whenever I click enter after entering the text in input field angular is considering as form submit. How can I call a method on entering the text box. Please review the code below.</p>
  
  <pre><code>&lt;form #f id="form-step1" (ngSubmit)="onFormSubmit($event)"&gt;
  </code></pre>
  
  <p>This form has its own validation part. So whenever I click the enter its taking to the validation part.</p>
  
  <pre><code>&lt;input class="txt-box" type="text" name="map_address" 
  [(ngModel)]="step1Data.map_address" value="" 
  (keyup.enter) = "getAddress($event)" id="map_address" /&gt;
  </code></pre>