function getZCommand(e: SyntheticKeyboardEvent<>): ?DraftEditorCommand {
  if (!hasCommandModifier(e)) {
    return null;
  }
  return e.shiftKey ? 'redo' : 'undo';
}
Get the appropriate undo/redo command for a Z key command.