Wrap up Key into a case class because Array comparison in java doesn't compare array's content