--- title: "Key pressed" slug: "fretrigger-common-keypress" updated: 2026-04-30T12:47:04Z published: 2026-04-30T12:47:04Z canonical: "docs.lobstersoftware.com/fretrigger-common-keypress" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Key pressed > [!NOTE] > **Triggering event – Abstract** > > Some [Form elements](/v1/docs/en/fre-form-elements) (especially input fields and the form element itself) offer keypress events as the **Triggering** **event** for behavior. As input data (`$input`) these triggers return the value of the respective element. The form data is returned at form level. A keypress event can only be triggered if the corresponding element has the focus. EXCEPTION Behavior with a [Key pressed](/v1/docs/en/fretrigger-common-keypress) as a trigger, defined at form level, is executed regardless of the focus on an element. Both behaviors are executed if an element has the focus for which a behavior is defined that reacts to the same button as the form (after the behavior at form level). | Event name | Description | | --- | --- | | Enter pressed | is triggered when the **Enter** key is pressed. | | F1 pressed | is triggered when the user has pressed the **F1** function key. | | F2 pressed | is triggered when the user has pressed the **F2** function key. | | F3 pressed | is triggered when the user has pressed the **F3** function key. | | F4 pressed | is triggered when the user has pressed the **F4** function key. | | F5 pressed | is triggered when the user has pressed the **F5** function key. | | F6 pressed | is triggered when the user has pressed the **F6** function key. | | F7 pressed | is triggered when the user has pressed the **F7** function key. | | F8 pressed | is triggered when the user has pressed the **F8** function key. | | F9 pressed | is triggered when the user has pressed the **F9** function key. | | F10 pressed | is triggered when the user has pressed the **F10** function key. | | F11 pressed | is triggered when the user has pressed the **F11** function key. | | F12 pressed | is triggered when the user has pressed the **F12** function key. |