This can be non-display characters, so shouldn't this be something like:

```
  return translateToKey[charCode] || String.fromCharCode(charCode);
```

...or something? Listening to `onKeyPress` and checking `event.key === 'Enter'` should work. Currently, this will just return an empty string:

```
> String.fromCharCode(13)
""
```