# useKeyModifier

Reactive Modifier State. Tracks state of any of the supported modifiers - see Browser Compatibility notes.

**Package:** `@vueuse/core`
**Category:** Sensors

## Usage

```ts
import { useKeyModifier } from '@vueuse/core'

const capsLockState = useKeyModifier('CapsLock')

console.log(capsLockState.value)
```

## Reference

[VueUse Docs](https://vueuse.org/core/useKeyModifier/)
