I know this is an old post and I hope I didn't bump it up for no reason but....
You can execute scripts with "exec <scriptname.cfg>" This can be bound to a key or entered into the console. In it, you can easily keep key binds and other in-game functions. (it can also be easily editable in notepad and allow you to script your in-game keys for different situations.)
I also have an autoexec.cfg script that gets run automatically when the game starts setting or executing binds or scripts that sometimes stop working after an update. I used Steam to get the game and my autoexec.cfg was a file I had to create in my "C:\Program Files\Steam\steamapps\flannelbum\team fortress 2\tf\cfg" folder. I'm pretty sure you can create one in the same directory where TF2 is and it'll do the same for you.
If you already knew this I didn't mean to insult intelligence or waste your time. Just felt the need to share how cool this was to find out for myself.
More info on scripts, binds, and other good TF2 info:
www.tf2wiki.net