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
| Name | Value | Description |
|---|---|---|
| Shift | 0 | The Shift key (left or right Shift key). |
| Ctrl | 1 | The Control key (left or right Ctrl key). |
| Alt | 2 | The Alt key (left or right Alt/Option key). |
| Meta | 3 | The Meta key (the Windows key on Windows, or the Command key on macOS). |
Shift
The Shift key (left or right Shift key).
| Field | Value |
|---|---|
| value | 0 |
Ctrl
The Control key (left or right Ctrl key).
| Field | Value |
|---|---|
| value | 1 |
Alt
The Alt key (left or right Alt/Option key).
| Field | Value |
|---|---|
| value | 2 |
Meta
The Meta key (the Windows key on Windows, or the Command key on macOS).
| Field | Value |
|---|---|
| value | 3 |