Capture key sequences in ActionScript 3. AKA The Konami Comeback.
6/06/2009
Lately the internet has had a wave of sites using the cherished Konami Cheatcode to reveal easter eggs or similar functionality in the site or app.
I wrote a (crappy but working) class to implement such functionality in ActionScript about a year ago here.
I decided to polish it up a bit for the benefit of myself and anyone else and in the process ended up creating a small utility class to work with keystrokes in the process.
You can download the (fairly self-expaining) classes and a sample project right here, or read on for a bit of explanations.
(Text) Keys.as.
(Text) Konami.as.
(Archive) Neatly zipped + example.