title: Angular click event identify whether it is mouse click or keyboard enter key event
body: <p>I have following html code, I need to identify whether the event is mouse click event or keyboard enter key event.</p>
  
  <p>Html code</p>
  
  <pre><code>    &lt;button mat-raised-button class="btn-enter-troubleshooting-attempts" 
  (click)="triggerLog($event)"&gt; Click/Enter &lt;/button&gt;
  </code></pre>
  
  <p>Type script</p>
  
  <pre><code>triggerLog(e): void {
      console.log('Log Attempt', e);
     //do some function based on the event
    }
  </code></pre>