adds debug prints to getKey method

best to be removed once we fix the bugs with it
better way of debug checking for the key
Merge pull request #450 from way2muchnoise/master

adds debug prints to getKey method