This mod allows you to farm/boat/... while doing other things, as you can un-focus the Minecraft window.
Since the 1.9.4 / 1.10.2 build, you can emulate any keybinding.
You can set the delay to 0 to emulate a continues button press.
It may behave derpy if you don't alt-tab out properly, it depends on what you are holding and what you are pointing at.
Don't use this on a server that doesn't allow AFK farming.
It is detectable, and I'm not planning on making it undetectable.
Don't blame me if you are banned!
Use /tapemouse <off|keybinding> [delay]
To get a list of all the keybinding names, use "/tapemouse".