# trigger_key_event {{< callout context="note" title="NOTE" icon="outline/bulb" >}} Deprecated. Use `fsEventsTriggerKeyEvent` instead. {{< /callout >}}   The **trigger\_key\_event** function initiates the action of a key event.   ##### Syntax ``` wasm ERR trigger_key_event( ID32 event_id, UINT32 value ); ```   ##### Members {{< table-wrapper >}} | Parameters | Description | |------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `event_id` | Specifies the event ID. Refer to the list of key events in the [EventIDs document](../../../key-events/key-events/), and the `#define KEY_events` in `gauges.h`. | | `value` | Specifies an additional integer value. Set this to zero if it is not required. | {{< /table-wrapper >}}   ##### Return Values The function returns an ERR, which is usually ignored. If the event requested is not appropriate, it simply will not happen.   ##### Example ``` wasm static MODULE_VAR nav_light; lookup_var( &nav_light); trigger_key_event( KEY_TOGGLE_NAV_LIGHTS, 0 ); ```   ##### Remarks N/A