How to convert keycode to character using javascript [duplicate]

String.fromCharCode() is what you want:

The fromCharCode() method converts Unicode values to characters.

Syntax

String.fromCharCode(n1, n2, ..., nX)

Leave a Comment