The best thing I can think of is to immediately release all the wrong notes. Missing notes are better than a sustained wrong chord or immediately playing the right chord after a wrong one.