Im working on a presentation in Flash. The following function works fine when in an SWF, but when in an EXE it does not.

I am not very familar with Flash projector, but I believe this should work.
Code:
function keydetect() {
        var myListener:Object = new Object();
        myListener.onKeyDown = function() {
                play();
        };
}
Thanks,
-Mike