Retrieving the value of the input on keydown

As you type in the input below, its value is displayed inside the <p> element following the input element.