Shaft with keyway