---
title: altKey
framework: webkitjs
role: symbol
role_heading: Instance Property
path: webkitjs/gestureevent/1630971-altkey
---

# altKey

A Boolean value indicating whether the alt key is pressed.

## Declaration

```data
readonly attribute boolean altKey;
```

## Discussion

Discussion If true, the alt key is pressed; otherwise, it is not. If there is no keyboard, this value is false.

## See Also

### Accessing Properties

- [ctrlKey](webkitjs/gestureevent/1629639-ctrlkey.md)
- [metaKey](webkitjs/gestureevent/1630762-metakey.md)
- [rotation](webkitjs/gestureevent/1633278-rotation.md)
- [scale](webkitjs/gestureevent/1632653-scale.md)
- [shiftKey](webkitjs/gestureevent/1633677-shiftkey.md)
- [target](webkitjs/gestureevent/1632473-target.md)

### Related Documentation

- [Safari Web Content Guide](apple-archive/documentation/AppleApplications/Reference/SafariWebContent/Introduction.md)
