We have 2⋅1=(a+1)2−a2−1∈Z(K), for a∈K. If the characteristic char(K) of K is not 2, then 2⋅1 is an invertible element in Z(K), such that
a=(2⋅1)−1⋅(2⋅a)∈Z(K), for any a∈K,
implying that K is abelian.
Consider the case char(K)=2. For a,b∈K we have a=(a+b)2−a2−b2∈Z(K). As w⋅ab=(ab)2+ab2a=(ab)2+a2b2∈Z(K), if w=0, then a,b=0 and ab=w−1⋅((ab)2+a2b2)∈Z(K). Consequently a⋅(ab)=(ab)⋅a=a⋅(ba), so that, ab=ba.
In case w=0, as 1=−1, we get ab=−ba=ba, that is ab=ba for any a,b∈K.