Any quick fix for this? onEnterFrame problem

this function I am using with onEnterFrame only happens once. I’m not very good at actionscript and all the ways around this seemed like way more work than it should be. Can anyone help? Here is the code:

_root.onEnterFrame = function(){
if (Key.isDown(Key.ESCAPE)){
checkDisplay();
}
}