Create keyboard shortcut

Hello,Does anyone know if it is possible to create your own keyboard shortcut? The aim is to click e.g. F12 and a formaction or viewaction is should be performed.

All input is greatly appreciated

Ellen