Just have them bind the command to their key the same way that you always do it. If you use "say /test" as the command in register_clcmd() then you simply bind that: bind "key" "say /test"
If you don't want it to be a chat command, simply rename the command to whatever you want and use that in the bind.