Skip to content

UserInputService

Class | Source Code

Triggered on the single instance where a key goes from being down to being up.

By the time this is triggered, the service has been updated to reflect the new key event.


Triggered continuously so long as a key is pressed.

By the time this is triggered, the service has been updated to reflect the new key event.


Triggered on the single instance where a key goes from being up to being down.

By the time this is triggered, the service has been updated to reflect the new key event.

Whether the specified key is currently released.


Whether the specified key is currently pressed.


isChordPressedExclusively(keys: string[]): boolean

Section titled “isChordPressedExclusively(keys: string[]): boolean”

Whether only the keys necessary for the specified chord are pressed.


Whether the specified chord is currently pressed. Note that other keys could also be pressed. If you want to know if only the keys necessary for this chord are pressed, use UserInputService.isChordPressedExclusively.