format
typescript
Input.GetKeyUp(key)class: Input
description
Detects whether the specified key is released in the current frame's key release event.
parameter
| param_name | type | description |
|---|---|---|
| key | KeyCode | Key enumeration value |
return
| type | description |
|---|---|
boolean | Whether the key is released |
code example
typescript
OnUpdate(): void {
let result = Input.GetKeyUp(KeyCode.Backspace);
if (result) {
Debug.Log("····Released Backspace key····");
}
}