You can undo paint by right clicking on it! Just make sure your equipped color swatch matches the paint you're trying to erase.