Hold the mouse down until the path is drawn. The further away from the bow you click, the further the arrow travels.
Credit to @CCODER for the source project. I just made it so the arrow could continue to travel off-screen.