Add key class for hashes