title: How to detect a combination of keys pressed in a Mac app?
body: <p>I know that keyboard events in Mac apps can be triggered like so:</p>
  
  <pre><code>- (void) keyDown(NSEvent*)event {
      switch ([event keyCode]) {
          case someKeyCode:
              NSLog(@"blah blah blah");
  
          default:
              break;
      }
  }
  </code></pre>
  
  <p>But how would I make my app react to a <em>combination</em> of key pressed, such as the <a href="http://en.wikipedia.org/wiki/Konami_Code" rel="nofollow">Konami Code</a>?</p>
  
  <p>Thanks!</p>