malloc for inKe inKeyValPair in init_inKeyValPair