Do loop not working

 if (customKey){
      return customKey;
      Serial.println(customKey);
    }

tell us what you understand about "return"

while (customKey!="4");and what you understand about the differences between chars and strings