Input

keyrelease

Releases a previously pressed keyboard key.

Syntax

keyrelease(keyCode: number | integer)

Arguments

NameTypeDescription
keyCodenumber | integerNumeric Roblox key code or virtual key code to send.

Description

Releases a previously pressed keyboard key.

Call it with 1 parameter(s): keyCode. The argument table explains which values are required and which ones only refine the behavior.

It does not return data. Treat the call as an action and handle errors around the call site when needed.

Example

Example call with placeholder values.

keyrelease(1)