useKeyModifier
Reactive Modifier State. Tracks state of any of the supported modifiers - see Browser Compatibility notes.
Package: @vueuse/core
Category: Sensors
Usage
import { useKeyModifier } from '@vueuse/core'
const capsLockState = useKeyModifier('CapsLock')
console.log(capsLockState.value)