How to get FKey from ASCII KeyCode?

Given an integer ascii keycode value, how can we get the respective FKey?


FInputKeyManager does not return the correct FKey correctly.

FInputKeyManager manager = FInputKeyManager::Get();
FKey key = manager.GetKeyFromCodes(Chunk.KeyCode, Chunk.KeyCode);

The reason why it doesn’t work is because in Unreal, the Keycode is mapped from 0 to 125 in its custom index. And it is listed from the following EKey.