> For the complete documentation index, see [llms.txt](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.open-tx.org/opentx-2-3-lua-reference-guide/part_iii_-_opentx_lua_api_reference/general-functions-less-than-greater-than-luadoc-begin-general/killevents.md).

# killEvents(key)

Stops key state machine. See [Key Events](https://github.com/opentx/lua-reference-guide/blob/opentx_2.3/part_iii_-_opentx_lua_api_reference/key_events.md) for the detailed description.

@status current Introduced in 2.0.0

## Parameters

* `key` (number) key to be killed, can also include event type (only the key part is used)

## Return value

none
