Question: can jagex detect mouse movement?
Answer: No, they can't detect your mouse moving in other windows with the client. And yes, they record and send both your mouse clicks and movements to the server, though it's likely most of the data is discarded after a certain period of time to conserve space on the servers.