How to listen to keydown event in React

Events
By Jad Joubran · 
Last updated Jan 28, 2020
import React from "react";

function Input() {
  function handleInputKeyDown(event) {
    console.log(event.target.value);
  }

  return <input onKeyDown={handleInputKeyUp} />;
}