AFAIK, you can't trap the PAUSE key in VFP. Why not use another key? Like
ONKEYLABELALT+P SETSTEPON
>I have a loop to display out the record on a defined window, but I want to pause the loop by pressing the PAUSE key of the keyboard. I try to press the PAUSE key, but the loop continue. >How to code it ?