title: How can i prevent default behaviour of key events in as3
body: <p>I have a video player , and its using a slider.While the video is playing i press the right-arrow or left-arrow , it tries to move the slider pointer. 
  I need to call a function insted of the default behaviour.</p>
  
  <pre><code>stage.addEventListener(KeyboardEvent.KEY_DOWN, myKeyDown);
  
  function myKeyDown(e:KeyboardEvent):void{
  
  switch(e.keyCode)
          {
          case 37:
                  callLeft();
                  break;
          case 39:
                  callRight();
                  break;
                          ......
                          ..
              }
  }
  </code></pre>
  
  <p>But the functions are not being called when i press the keys, instead its calling the default actions.Enter key also have problems. How can i fix that.</p>