Thank you for your answer. My phone is rooted with magisk and I did not install keylayout module. May you assist me how to edit gpio-keys.kl ?
You just need to opem the file with a text edior like qedit and change the line containing key 689 to
Code:
key 689 GOOGLE_ASSISTANT
Save the file and install the magisk module custom key layout again. The module will handle the rest.