> For the complete documentation index, see [llms.txt](https://docs.navigaglobal.com/dashboard-plugin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.navigaglobal.com/dashboard-plugin/api-and-gui/api/getkeycodefromchar.md).

# getKeyCodeFromChar

getKeyCodeFromChar is a helper function which will return the keyCode value of the key char

## How to use

```javascript
import { Plugin } from'@root'

Plugin.getKeyCodeFromChar('Esc') // returns 27
Plugin.getKeyCodeFromChar('Space') // returns 32
```
