title: angular 2 ionic 2 handling events on keypress
body: <p>I have a bunch of ionic 2 cards which I want to flip on the press of a key (any key, it doesn't matter). The code looks like</p>
  
  <pre><code>&lt;ion-content padding&gt;
      &lt;ion-card (click)="setTime(7)" *ngIf="status == 'morning'" (keypress)="eventHandler($event)" style="width:80%"&gt;
          &lt;img src="https://greatist.com/sites/default/files/Sleeping-Positions-feature.jpg"/&gt;
      &lt;/ion-card&gt;
  &lt;/ion-content&gt;
  </code></pre>
  
  <p>the .ts code</p>
  
  <pre><code>eventHandler(keyCode){
          alert('hey vikj');
    }
  </code></pre>
  
  <p>On pressing any key, my event handler is not fired. </p>