Passing key_name to an instance creation was corrected.

reviewers: @uvizhe