'Reselect Last Selection' Button/Shortcut

Oftentimes I’d like to reselect everything I had last selected, and manually clicking every part is slow, tedious, and carries the risk of misclicks (particularly for small parts). If there was a button or a keyboard shortcut I could use it would be much easier.