packages/material-ui-lab/src/internal/pickers/hooks/useKeyDown.ts/runKeyHandler
export function runKeyHandler(
  event: KeyboardEvent | React.KeyboardEvent,
  keyHandlers: KeyHandlers,
) {
  // tslint:disable-next-line deprecation IE11
  const handler = keyHandlers[event.keyCode];
  if (handler) {
    handler();
    // if event was handled prevent other side effects (e.g. page scroll)
    event.preventDefault();
  }
}