Wacky derives from English whack, which comes from English thwack, tracing back through Middle English thakken and Old English þaccian to Proto-Germanic þakwōną, ultimately from Proto-Indo-European tag-.
wacky (English): zany; eccentric; Alternative form of wacke