ON KEYT LABEL F2 *I am afraid that you will need to do this for all of the OKLs in effect and then reset them back when your code is finished. This is why I strongly encourage NOT using OKLs unless you need an intercommand interrupt. Use Key Press events or menus that you never show with hot keys (menus do not interrupt running code).