Logging which keys have been pressed and in which order javascript?
<p>I am creating a html canvas game and need to log if there was a successful order of keys being pressed.</p>

<p>The keys that have to be pressed in this order are</p>

<p><strong>z</strong> then <strong>a</strong></p>

<p>If z and then a is pressed it should trigger an event. How can this be best done?!</p>

<p>Thanks</p>
