I've seem this more times than I can count. Cops will do just about anything to spy on their exes:
CHARLESTON, WV—U.S. Attorney Booth Goodwin today charged Clay County Sheriff Miles J. “Mike” Slack with illegal wiretapping, a federal felony that can carry up to five years in prison. In a criminal case filed this afternoon, Goodwin charged Sheriff Slack with surreptitiously installing a keystroke logger on a computer belonging to the Supreme Court of Appeals of West Virginia.
According to court documents, the compromised computer was a government computer assigned to Slack’s then-wife, identified as Victim L.S., who works in the office of a Clay County magistrate. Computers in the offices of circuit judges and magistrates throughout West Virginia are owned and maintained by the state’s supreme court and are connected to a central supreme court computer network.