I think you can do that with AutoHotkey. The input system for the game is being re-written, so there probably will not be many updates to the existing implementation until that is done.