Listening for Key Sequences in JavaScript

from blog Aleksandr Hovhannisyan, | ↗ original
Learn how to implement a simple algorithm that listens for a specific sequence of keystrokes in JavaScript, with an optional delay between keys.