title: How to handle alt+p keyboardEvent on macOS browsers
body: <p>I'ld like to listen the following keyboardEvent : <strong>alt + p</strong></p>
  <pre><code>if (event.altKey &amp;&amp; event.key === &quot;p&quot;) {
  
    doThis(stuff)
  
  }
  </code></pre>
  <p>Problem is that in OSX <strong>(alt+p) === &quot;π&quot;</strong></p>
  <p>so I wrote this ugly condition for Mac OSX users</p>
  <pre><code> if (
        (event.altKey &amp;&amp; event.key === &quot;π&quot;) ||
        (event.altKey &amp;&amp; event.key === &quot;p&quot;)
      ) {
  
         doThis(stuff)
  
  }
  
  </code></pre>
  <p>It works <em>AND</em> it's ugly =D</p>
  <p><strong>So if anyone has a better way to handle this please give me a hint !</strong></p>
  <p><em>USEFULL REMINDER: keyCode and charCode are DEPRECATED</em></p>