KeyDebugManager provies key based debug system. It just keeps some key-function pairs, and do the function when its input.
You can use Package Manager or import it directly.
https://github.com/XJINE/Unity_KeyDebugManager.git?path=Assets/Packages/KeyDebugManager
This project use following resources.
Register your key and function pairs in Inspector.