# UserInput.ModifierKeys Enumeration

> Determines a pressed modifier key. It contains the following values:

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > UserInput.ModifierKeys Enumeration
- **507 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/modifierkeys-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/modifierkeys-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/modifierkeys-enumeration/llms-full.txt

---

### Description

Determines a pressed modifier key. It contains the following values:

### Syntax

```csharp
public enum UserInput.ModifierKeys
```

```vbnet
Public Enum UserInput.ModifierKeys
```

### Members

| Member | Value | Description |
|---|---|---|
| None | 0 | No modifier key was pressed. |
| Shift | 4 | The SHIFT key was pressed. |
| Control | 8 | The CTRL key was pressed. |
| Alt | 2048 | The ALT key was pressed. |

### Examples

The following example selects the Shift value from the Modifier Keys enumeration and uses it as a documented workflow choice.

```csharp
TXTextControl.ServerVisualisation.UserInput.ModifierKeys value = TXTextControl.ServerVisualisation.UserInput.ModifierKeys.Shift;
Console.WriteLine($"Using Modifier Keys: {value}");
```

```vbnet
Dim value As TXTextControl.ServerVisualisation.UserInput.ModifierKeys = TXTextControl.ServerVisualisation.UserInput.ModifierKeys.Shift
Console.WriteLine($"Using Modifier Keys: {value}")
```

---

## Nearby

- **Previous:** [UserInput Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/llms-full.txt)
- **Next:** [UserInput.MouseButtons Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/mousebuttons-enumeration/llms-full.txt)
