title: Angular2 Observable fromEvent keyup map Property 'key' does not exist on type '{}'
body: <p>Please, how can I fix this code ?</p>
  
  <pre><code>Observable.fromEvent(this.getNativeElement(this.term), 'keyup')
      .debounceTime(500)
      .map(ev =&gt; ev.key)
      .scan((acc, one) =&gt; acc + one)
      .subscribe(term =&gt; console.log(term));
  </code></pre>
  
  <p>I get the error Property 'key' does not exist on type '{}' </p>
  
  <p>UPDATE</p>
  
  <p>As in the comment of @jb-nizet ( thx so much :) )
  I worked it out with</p>
  
  <pre><code>Observable.fromEvent&lt;KeyboardEvent&gt;(this.getNativeElement(this.term), 'keyup')
  </code></pre>