<div class='type'>Function</div>


<a id='references'></a>


<h2 id="performkeypress-keyevent">performKeyPress</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun SemanticsNodeInteraction.performKeyPress(keyEvent: KeyEvent): Boolean
```


Send the specified `KeyEvent` to the focused component.

#### Returns

| | |
| --- | --- |
|  | true if the event was consumed. False otherwise. |