Creating the key class