Right-click on the file or folder and click on the “Undo Delete” option instead of holding ctrl and pressing z key. This is another way to undo Ctrl delete.