Last action key

I’d love a last action key, for example, I apply an outline to a frame, or a delete a background with magic wand, and I can just repeat that action quickly