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