Key press events

Has the key press actionscript changed for mx2004, i can’t seem to make a simple script as below work

on (keyPress “<ENTER>”) {
submit();
}

This is placed on an instance of a button that is off the stage and should simply trigger my function submit. The function works as it is also triggered by clicking another button.