Added equals method for Keys.