# UserInput.SendKeyUp Method

> Informs the view generator about a key up event.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **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.SendKeyUp Method
- **523 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/sendkeyup-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/sendkeyup-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/sendkeyup-method/llms-full.txt

---

### Description

Informs the view generator about a key up event.

### Syntax

```csharp
public bool SendKeyUp(int keyCode, UserInput.ModifierKeys modifierKeys);
```

```vbnet
Public Function SendKeyUp(keyCode As Integer, modifierKeys As UserInput.ModifierKeys) As Boolean
```

### Parameters

| Parameter | Description |
|---|---|
| keyCode | Specifies the virtual key code for the pressed key. |
| modifierKeys | Specifies modifier keys. It can be a combination of the [ServerVisualization.UserInput.ModifierKeys](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/modifierkeys-enumeration/llms-full.txt) values. |

### Return Value

If the event has been handled, the method returns true. Otherwise, it returns false.

### Examples

The following example uses Send Key Up in a focused User Input workflow.

```csharp
if (userInput.SendKeyUp(10, TXTextControl.ServerVisualisation.UserInput.ModifierKeys.Shift))
{
    Console.WriteLine("Send Key Up completed successfully.");
}
```

```vbnet
If userInput.SendKeyUp(10, TXTextControl.ServerVisualisation.UserInput.ModifierKeys.Shift) Then
    Console.WriteLine("Send Key Up completed successfully.")
End If
```

---

## Nearby

- **Previous:** [UserInput.SendKeyPress Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/sendkeypress-method/llms-full.txt)
- **Next:** [UserInput.SendMouseDoubleClick Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/userinput/sendmousedoubleclick-method/llms-full.txt)
