I don't have any direct advice, just that there's a thread in one of the Linux communities where the OP is asking for help with ydotool. You might find some good tips in that thread.
ETA a link to my post from last year about emulating mouse clicks via keyboard shortcuts. I never followed through and got it working the way I wanted, but through my research and troubleshooting I stumbled upon several tools and tutorials, which I linked in the top level post and one of which might (hopefully) help you.
Good luck, and please post an update if and when you figure out how to resolve your issue. Thanks!