Evaluate "Custom Keys" Framework
This could work in combination with keys/actions framework.
In the ingame options are "Custom Keys", which can be mapped to actions.
The issue is that there is no common framework implemented to work with these keys.
First investigations at least show that you cannot (yet) add custom keys to the config (hardcoded).