* Form.KeyPress( nKeycode, nShiftAltCtrl ) if ( nKeyCode = -1 ) && F2 this.AddNew() nodefault && prevent the key from being seen by the current ActiveControl endif return dodefault( nKeycode, nShiftAltCtrl ) * Toolbar.cmdAddNew.Click() _screen.ActiveForm.AddNew()Of course your toolbar button should check to see if there actually is a form active (type( "_screen.ActiveForm" ) = "O" at the moment and that it supports the AddNew() interface using pemstatus(). That sort of code should be in the CommandButton subclass that you are using on toolbars.