Fixed get_key function, unused $key parameter

Parameter $key was here but unused