Adding accelerator key for a program

#1
Back in Windows 3 there was a program which allowed adding accelerator keys which operated only in a specific window. I could make the same key do completely different things in different active GUI windows. The base action for each would typically be a nice long key sequence Accelerator would be so much handlier! Any suggestions?