# KeyStateChange Event

> Occurs when the character insertion mode of the TXTextControl or the state of the NUMLOCK or CAPSLOCK key has been changed. The event has no parameters.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > KeyStateChange Event
- **67 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/keystatechange-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/keystatechange-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/keystatechange-event/llms-full.txt

---

Occurs when the character insertion mode or when the state of the NUMLOCK or CAPSLOCK key has been changed.

### Syntax

```vbscript
KeyStateChange( )
```

### See Also

- [Programming Category: Text Selections and Character Input](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/selections/llms-full.txt)

---

## Nearby

- **Previous:** [KeyPress Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/keypress-event/llms-full.txt)
- **Next:** [KeyUp Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/keyup-event/llms-full.txt)
