How to custom the hot-key?

In order to improve the efficiency during processing, I want to make more hot-keys. Like I can press ‘w’ to move things, ‘e’ to rotate thing, just like the operating in maya or unity I used to.
However, I cannot find any way to program that. I tried to make a global key hook but couldn’t work well of course (app would response when I typing words).
Thanks a lot if anybody have the answer for that!