Buttons not workin on different scene

So here’s the issue. I have two galleries and two scenes when I jump from scene to another the prev/next buttons in galleries stop workin when pressing left/right arrow. Mouse functions just fine, no problem there.

When i press left/right the gallery jumps a few photos ahead or backwards…

listen = new Object();
listen.onKeyDown = function() {
    if (Key.getCode() == Key.LEFT) {
        prevImage();
    } else if (Key.getCode() == Key.RIGHT) {
        nextImage();
    }
};
Key.addListener(listen);
previous_btn.onRelease = function() {
    prevImage();
};
next_btn.onRelease = function() {
    nextImage();
};

So if anyone can offer help I’d be glad. I’m runnig out hair :smiley: