# Editor.Application.KeyCodeToString

```csharp
static string KeyCodeToString(KeyCode code)
```

Converts an editor keycode to a string used by the game
Qt::Key -> WindowsVirtualKey -> ButtonCode_t -> string

### Parameters

- `code` (`KeyCode`)

### Returns

`string`

Declared in [Editor.Application](/api/Editor.Application).
Assembly: `Sandbox.Tools`.
