Create a shortcut key for a function

Hello everyone,

Is it possible to create a shortcut (preferably with only one key) to insert a function that I created? For example: units [ex].

Regards,
Sinval