Add protection around copying the public key to clipboard