Remote control in react js

I am developing a hosted web app using reactjs. Is it possible to move the focus of multiple components by pressing the direction keys on the remote control with the ref of react?

Please use the event listener as follows:

document.addEventListener(
  "keydown",
  function(event) {
    console.log("keydown", event.keyCode);
  },
  false
);
1 Like