From Proto-Malayo-Polynesian *gapgap. kakakaka to stutter, stammer “kakakaka” in John C. Moorfield, Te Aka: Maori–English, English–Maori Dictionary and...
The misleading spelling exists for historical reasons. kaka, kakaka (kakakaka...) ka ha (representation of laughter) From Proto-Polynesian *ka-, *ka...