Key board short cut question.

I am looking to setup "hot keys" similar to what I am used to in AutoCAD. For instance I would like to

hit "L" and the line command be active or "T" for trim and that command be active.

Does a script need to be wrote for this? How do I go about this?

 

Thanks guys!