updating the key_pair method call from the aws server model

getting rid of the depreciation warning when calling key_pair from the aws server model.