https://autohotkey.com/
I use this script in combination with a USB numpad when i draw on my laptop (and my keyboard is bent behind the screen & inactive).
With autohotkey i installed all keys i need (Several F keys, crtl+z, copy, paste, etc) on the numpad when drawing in adobe animate. The script is extremely flexible, you can code any key for anything you like.