Changed key assignments to memcpy. keys now have pData value.