Losing key press detectiong when button is clicked

Hello

i’m building an projector application in AS3, as a slide show.

When the right and left keys are pressed on the keyboard, the slides change.

the code to change the slide:


function setup() {
	stage.addEventListener(KeyboardEvent.KEY_DOWN, displayKey);
}
setup();

function displayKey(keyEvent:KeyboardEvent) {

	if (keyEvent.keyCode==37) {
		prev();
	} else if (keyEvent.keyCode == 39) {
		next();
	}



}

Some slides have button on it, that change the slide, jumping to a chapter the user whant to see.

the problem i’m having is that when the button at a slide is clicked, the key press detection does not work anymore. To make it work, I have to click somewhere on the stage.

Does anybody has gone trough something like this before?
If so, any help will be appreciated.

Thanks