> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simular.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# KeyFromString

# Function: keyFromString()

> **keyFromString**(`value`): [`Key`](../enumerations/Key.mdx)

Defined in: [index.d.ts:1658](https://github.com/simular-ai/simulang-js-internal/blob/d2b85c3277cbb16ce50c0781e1db8ad2c8a5690e/index.d.ts#L1658)

Convert a string representation into a `Key`.

## Parameters

### value

`string`

## Returns

[`Key`](../enumerations/Key.mdx)
