Press a key on the keyboard in the input field to get the Unicode character code of the pressed key.
The charCode property is deprecated. Use the key property instead.