Something's screwy with my code

Hi guys! Day 3 of using actionscript, so…

Not sure if I have my functions arranged properly. I have one app, two tabs. Everything works perfectly with the mouse click, but when I went to add the ENTER key function, the first tab works as it should. The ENTER key works on the second tab, but it returns the response from the first tab. I’ve rearranged things as best I could but keep getting the same results. Perhaps someone a little more knowledgeable can point out the problem.

TAB 1:

stop();

inputField.text="";

var urXml:URLRequest;
var ulXml:URLLoader;

//connect to the XML file
urXml=new URLRequest("zipCodes.xml");
//instantiate the loader
ulXml=new URLLoader(urXml);
//Add event Listener for load complete
ulXml.addEventListener(Event.COMPLETE, xmlLoaded);
//Load XML into loader object
ulXml.load(urXml);

var xmlEPG:XML;

function xmlLoaded(evt:Event):void {
	bttn.addEventListener(MouseEvent.CLICK, bttnFunc);
}

stage.addEventListener( KeyboardEvent.KEY_DOWN, keyListener );


function keyListener( e:KeyboardEvent ):void {
	if (e.type==KeyboardEvent.KEY_DOWN) {
		if (e.keyCode==Keyboard.ENTER) {
			responseText.text="No! You must drop this package at the earlier drop-off time for the service you have selected.";


			xmlEPG=new XML(ulXml.data);
			for each (var object:XML in xmlEPG.*) {
				if (object==inputField.text) {
					responseText.text="Yes! You may drop off this package at the later drop-off time.";

					break;// quits the loop as soon as one is found
				}
			}

		}
	}

}



function bttnFunc(e:Event):void {

	responseText.text="No! You must drop this package at the earlier drop-off time for the service you have selected.";


	xmlEPG=new XML(ulXml.data);
	for each (var object:XML in xmlEPG.*) {
		if (object==inputField.text) {
			responseText.text="Yes! You may drop off this package at the later drop-off time.";

			break;// quits the loop as soon as one is found
		}
	}
}

SecondDayLiteBttn.addEventListener(MouseEvent.CLICK, switch1);

function switch1(e:MouseEvent):void {
	gotoAndPlay(3);
}

TAB 2:

stop();

inputField.text="";

bttn2.addEventListener(MouseEvent.CLICK, checkZips);

var fiveDigitCheck:RegExp=/\d\d\d\d\d/;
trace(fiveDigitCheck.test ("456"));

stage.addEventListener( KeyboardEvent.KEY_DOWN, keyListener );


function checkZips(e:Event):void {
	function keyListener( e:KeyboardEvent ):void {

		if (fiveDigitCheck.test(inputField.text)==true) {
			if (e.type==KeyboardEvent.KEY_DOWN) {
				if (e.keyCode==Keyboard.ENTER) {
					responseText.text="Yes! You may drop off this package at the later drop-off time.";
				} else {
					{
						responseText.text="Please enter a valid 5-digit zip code.";
					}
				}
			}
		}
	}
}
nextDayLight.addEventListener(MouseEvent.CLICK, switch2);

function switch2(e:MouseEvent):void {
	gotoAndPlay(1);

}

Many thanks in advance!

Cheers,
Brad