Yes it is possible. You must add an object of the TAction class to your form. You can specify a keyboard shortcut for Taction, and then put your code in the OnExecute event of TAction.
Note that you cannot add a Taction directly to your form, you must put a TactionList in your form, and then add a Taction to your TActionList.
Giacomo Degli Esposti
source share