This example uses the addEventListener() method to attach a "keypress" event to an input element.
Press a key inside the text field to set a red background color.