title: Listen to keystrokes in AppleScript
body: <p>I am trying to implement a 2-step keystroke mechanism in AppleScript.</p>
  
  <p>I'd like to me able to type command-Y (for example) and then listen to the NEXT keystroke, and execute commands depending on what the keystroke is.</p>
  
  <p>This would allow me to create a service that listens to the command-Y, and then executes something.</p>
  
  <p>Is that possible at all, and if yes, how? </p>