Renewing delete listener action

Hey guys,

This is part of a code used to navigate menu buttons by pressing the up and down buttons. I had the problem of when the button was held it continually cycled through them, but when I delete the listener it stops. However I am having problems getting to revert back after its deleted. I realized this is probably pretty simple, but I’m having trouble regardless, can you lend a hand here:

var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
    switch(Key.getCode()) {
        case Key.DOWN :
            currentButtonId++;
            break;
        case Key.UP :
            currentButtonId--;
            break;
	}
	delete this.onKeyDown;
	
};

Key.addListener(keyListener);