# Sandbox.UI.CurveEditor.AddKey

```csharp
void AddKey(float time, float value)
```

Add a normalized key to the active curve. Near-duplicate times select the existing key.

### Parameters

- `time` (`float`)
- `value` (`float`)

Declared in [Sandbox.UI.CurveEditor](/api/Sandbox.UI.CurveEditor).
Assembly: `Sandbox.Engine`.
