Or depending on age group, robot. This is a computer lab management strategy.
One person does the thinking and talking. The other partner is working on the computer. If the person on the computer talks, then they must switch. Repeat offenders do push ups, or other suitable consequences to keep them both engaged.