Make enter not play

How do I make it so that when a user presses enter the movie dosen’t play?

myButton.onRelease = function() {

Is one way of stopping playback, but it depends on what you’re trying to accomplish.

ok nevermind. Turns out it dosen’t do that in the Flash Player, just Flash…