Put code in the Form's KeyPress method and set the KeyPreview property to .T.
HTH
>I have my users selecting an puush button to open up more push buttons: see code below:
>
>**************************
>this.enabled = .f.
>with thisform
> .Btn_Inventory.visible = .t.
> .Btn_UpFedlog.visible = .t.
> .Btn_Issued.visible = .t.
> .Btn_Receipt.visible = .t.
> .Btn_UpFedLog.setfocus()
>endwith
>
>thisform.Refresh()
>*****************************
>How can I make it possbile for them to press the esc key and return to the original screen and reset the main push button?