A number of built-in actions can have shortcuts assigned; see https://www.mathworks.com/help/matlab/matlab_env/keyboard-shortcuts.html
Defining arbitrary actions or even sequences of built-in actions is more difficult.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!