# killEvents(key)

Stops key state machine. See [Key Events](https://github.com/EdgeTX/lua-reference-guide/tree/fe42fe461fcccd828fba5d218da01336e4f7b0cd/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
