Creating keyboard shortcuts for Terminal
No need of 3rd-party apps.  

You can go to the Preferences Tab(Menu -> Terminal -> Preferences or ⌘,), then go to Profiles -> Keyboard.
There you can create shortcuts. Enter your command and end with an enter.  

For example, if you want to run ls each time you press F1, select F1 in the Key tab, and press "ls &lt;enter&gt;", which appears like ls\015.  

I didn't find a way to bind characters though, but using all these keys should be enough.