chatgpt floating menu enter key

Im trying to activate a chatgpt webview on keypress, and move focus to text box to prompt chat gpt. However, the text field isnt working as expected and enter key acts to add a newline, cmd+enter goes around this, but its inconvenient over time. Is there any way to fix this, besides listening for enter press on webview focus?