We distracted and engaged. We also explained the danger. DD really understood. We tried to create a "yes" environment, so like if you can get a plug cover that goes over a plugged in cord? That kind of thing. So the kids could explore pretty freely. But the bodily frustration thing is hard! Sometimes we did/do distract from that, just for some peace, and normally they get whatever they're shooting for pretty soon. Or come to understand they can work towards it. Good luck!