Is there a way to automate clicks or key press in KDE Fedora 44?

Just installed Fedora 44 KDE and having problem with RustDesk mandatory Approve click for incoming connection.
I tried making KWin script to “press” Enter key if “Remote Control” window appears but Wayland blocks sending Enter key.
So is there a way to auto click a button or press Enter on window popup?

Do you actually need to simulate keypresses, or can you configure the remote control permission directly?

I don’t use Rustdesk, but for example I could configure KDE Connect not to ask permission, if I wanted to -

That works for RustDesk, too.

Well with all this problems with Wayland I realized that I will not be able to use AnyDesk and Ahk11 so I went back to Linux Mint.

Thanks for your time.