"Switch/Case" syntax with simultaneous keypress

Hi, may I submit you this question:


function stageKey() {
 //press "left"
 if (Key.getCode() == 37) {
  trace("left");
 }
 //hold "q" while pressing left
 if (Key.isDown(81) && Key.getCode() == 37) {
  trace("q+left");
 }
}
var keyListener:Object = new Object();
keyListener.onKeyDown = stageKey;
Key.addListener(keyListener);

If I press “left”…OK it displays “left”
If I hold “q” then press “left” it will display “left” PLUS “q+left”

  1. What to do to have it verify the second condition only (“q+left”), in other terms when both keys are pressed only have “q+left” displayed, without each seperate key more.
  2. What would be the syntax using switch/case when there’s a cunjonction of key pressed?