Think back to the moment of the mistake to determine the cause. Mistakes don't happen in a vacuum. If you know why the mistake was made, you can correct the problem so that it's less likely to happen again. This takes some tough mental work, but it's part of the process of learning from mistakes.