Here's how to find the Student self-enrollment key for a course to which you have editing rights:
To CHANGE the enrolment key, the instructions are very similar. See Knowledgebase Article KB1055.