The action triggering Event object has a trigger; the so-called On-Event trigger. If you call a userexit at this trigger, the desired function is executed when a key or at key combination is pressed.
Any required application parameters are passed in a separate parameter field. The parameter string may not be longer than 255 characters.