generate a progfunckey for forwards