Press a keyboard key in the input field and display the value:
The which property is deprecated, use the key property instead.