Make the $key member private. Renamed setKey() to key(). key() now sets
the key, and returns the current key in use