You will need to install a user script manager extension to install this script.
Toggle the macro holder with Keycode 186 When deactivated, it functions as a key rebinder. When activated, hold any key to execute a hold macro. Modify the interval between holds in the menu. The menu displays the macro status, and by clicking an invisible button, you can view the controls.
If you want to change your toggle keycode and need assistance, here's a page that will help you: https://www.toptal.com/developers/keycode