<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BEKeyEntryContext",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(cs)BEKeyEntryContext"
  },
  "title" : "BEKeyEntryContext"
}
-->

# BEKeyEntryContext

A class that describes a key event and the text document with which the event is associated.

```
class BEKeyEntryContext
```

## Overview

If the key entry occurs within the context of a composed input mode, for example Chinese, Japanese, or Korean input, set [`shouldEvaluateForInputSystemHandling`](/documentation/BrowserEngineKit/BEKeyEntryContext/shouldEvaluateForInputSystemHandling) to `true`.
The text system uses the document’s marked text to combine multiple key events into a single input character.

## Topics

### Creating a key entry context

[`init(keyEntry:)`](/documentation/BrowserEngineKit/BEKeyEntryContext/init(keyEntry:))

Initializes an instance of BEKeyEventContext with its corresponding `keyState`

### Getting the information about the key event

[`keyEntry`](/documentation/BrowserEngineKit/BEKeyEntryContext/keyEntry)

BEKeyEntry for which this context is representing.

[`shouldInsertCharacter`](/documentation/BrowserEngineKit/BEKeyEntryContext/shouldInsertCharacter)

Represents whether a character should be inserted.

[`shouldEvaluateForInputSystemHandling`](/documentation/BrowserEngineKit/BEKeyEntryContext/shouldEvaluateForInputSystemHandling)

Represents whether the key event should be evaluated within the context of a composed input mode.

### Getting information about the text document

[`isDocumentEditable`](/documentation/BrowserEngineKit/BEKeyEntryContext/isDocumentEditable)

Represents whether the web document is editable



---

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)