Function fired twice on sim load

Hi

I’m using keyDown / mouseWheel to enable a nextImage() in a thumbgallery

it works in testing mode… fine

but when I simulate download, the function gets called twice. I’ve added a simple test to ensure its not being called somewhere else

 stop();
big = this
listen = new Object();
listen.onKeyDown = function() {
 if (Key.getCode() == Key.LEFT) {
  trace("left");
  if(big == _level0.item0.icon.inner.bigpreview){
  big._parent.prevImage();
 
  }
 } else if (Key.getCode() == Key.RIGHT) {
  if(big == _level0.item0.icon.inner.bigpreview){
  big._parent.nextImage();
  }
 }
};
Key.addListener(listen);