1 min read

Source: Roblox Creator Hub · CC BY 4.0 · View source · Code samples: MIT Imported 2026-10-03. Formatting adapted for this site.

ModifierKey

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).

Items

NameValueDescription
Shift0The Shift key (left or right Shift key).
Ctrl1The Control key (left or right Ctrl key).
Alt2The Alt key (left or right Alt/Option key).
Meta3The Meta key (the Windows key on Windows, or the Command key on macOS).

Shift

The Shift key (left or right Shift key).

FieldValue
value0

Ctrl

The Control key (left or right Ctrl key).

FieldValue
value1

Alt

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

FieldValue
value2

Meta

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

FieldValue
value3