title: AS3 Events and passing parameters
body: <p>I want to pass parameters when an event is triggered. My function:</p>
  
  <pre><code>private function keyChange(e:KeyboardEvent, setValue:Boolean):void
  </code></pre>
  
  <p>so that I can use the same function to set if a key is up or down. How would I write the event listener? I tried:</p>
  
  <pre><code>stage.addEventListener(KeyboardEvent.KEY_DOWN, keyChange(,true));
  </code></pre>
  
  <p>however that didn't work. Is this possible? Thanks</p>