<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BEKeyEntry/KeyPressState",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:@E@BEKeyPressState"
  },
  "title" : "BEKeyEntry.KeyPressState"
}
-->

# BEKeyEntry.KeyPressState

Key-press states for a keyboard event.

```
enum KeyPressState
```

## Topics

### Key states

[`case down`](/documentation/BrowserEngineKit/BEKeyEntry/KeyPressState/down)

An entry that indicates the key is down.

[`case up`](/documentation/BrowserEngineKit/BEKeyEntry/KeyPressState/up)

An entry that indicates the key is up.

### Creating a key-press state

[`init?(rawValue: Int)`](/documentation/BrowserEngineKit/BEKeyEntry/KeyPressState/init(rawValue:))

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)