Output shaft with keyway