Capturing input and jumping correctly

I’m working on a simple activity for users with disabilities. I’m attempting to capture which image is highlighted when the ENTER key is pressed on the keyboard and then take the user to a bigger version of that image. Sounds simple enough… I’ve built in an option to speed up or slow down the scan speed but im struggling to take the user to the relevant page afterwards…

Ive attached whats been done so far…

Im using the following code for this part (after numerous other options – but not having much luck):

_root.capture.onEnterFrame = function() {

if (Key.isDown(Key.ENTER) AND (show_image_1 == true)
_root.gotoAndStop(“colour1”);

} else if {

(Key.isDown(Key.ENTER)) AND (show_image_2 == true)
	_root.gotoAndStop("colour2");

} else if {

(Key.isDown(Key.ENTER)) AND (show_image_3 == true)
	_root.gotoAndStop("colour3");

} else if {

(Key.isDown(Key.ENTER)) AND (show_image_4 == true)
	_root.gotoAndStop("colour4");		

}

Any help or a point in the right direction would be much appreciated.