Also note that this works in any version of Windows.
Undo an Accidental Move or Delete With a Keyboard Shortcut in Windows Explorer
Have you ever accidentally deleted the wrong file, or duplicated files while trying to select them with the mouse? Those types of mistakes can be extremely frustrating, but there's a really, really simple way to reverse them.