score:4

export default function App() {
  const onKeyDown = (e) => {
    if (e.key === "Tab") {
      e.preventDefault();
      console.log("Tab");
    }
  };
  return <input onKeyDown={onKeyDown} />;
}

Related Query

More Query from same tag