Reference API Roblox

Engine API

Website

Related

Reference API Roblox

ModifierKey

Identifies a keyboard modifier key for use with InputObject:IsModifierKeyDown().

Items 4

HistoryNameValueDescription
598Shift0

The Shift key (left or right Shift key).

408Ctrl1

The Control key (left or right Ctrl key).

598Alt2

The Alt key (left or right Alt/Option key).

598Meta3

The Meta key (the Windows key on Windows, or the Command key on macOS).

Description

Identifies keyboard modifier keys. Pass a value to InputObject:IsModifierKeyDown() to test whether that modifier is held during an input event. Left and right physical variants map to the same value (for example, both Shift keys report as ModifierKey.Shift).

History 8

Settings