Function keys

hi guys i want to replace the ENTER Key by the function key F9…PLS HELP …
code:

[AS]stop();
attempt = 0;
stepNo = 0;
trace(“lang_enter”)
var kObj = new Object();
kObj.onKeyDown = function() {
if (Key.isDown(Key.ENTER)) {
Key.removeListener(kObj);
play();
}
};
Key.addListener(kObj);[/AS]