Ejecting a USB Drive Using Keyboard in Windows
Removing a USB flash drive, external hard drive, or USB SSD from your Windows computer may seem as simple as unplugging it. However, doing so without properly ejecting the device can sometimes cause data corruption, incomplete file transfers, or even damage the file system. This is especially important if you have recently copied, moved, or edited files on the drive.
While many people use the Safely Remove Hardware icon in the taskbar, Windows also allows you to eject a USB drive by using your keyboard. This method is particularly useful if you prefer keyboard shortcuts, your mouse is not working properly, or you simply want a faster way to remove your storage device.
In this guide, you will learn how to eject a USB drive using only your keyboard in Windows.
Ejecting a USB Drive Using Keyboard in Windows

Using the keyboard to safely remove a USB drive is easy once you know the correct sequence. Windows includes several keyboard accessible ways to reach the Safely Remove Hardware feature. You can use the notification area on the taskbar, File Explorer, or a dedicated command, depending on your preference.
Before removing your USB drive, make sure all files have finished copying. If a document or application is still using the drive, Windows may prevent you from ejecting it until the file is closed.
The following methods explain how to safely eject a USB drive using only the keyboard.
Step 1: Save Your Work and Close Files on the USB Drive
The first step is to make sure that no files stored on the USB drive are currently open. If you have a document, spreadsheet, image, video, or any other file open directly from the USB device, save your changes and close the program.
If you recently copied files to the USB drive, wait until the transfer is finished. Interrupting a file transfer by unplugging the drive too early may result in missing or damaged files.
If you are unsure whether a transfer is still running, look for any progress windows. Wait until they disappear before continuing.
Step 2: Open the Taskbar Notification Area with the Keyboard
Windows places the Safely Remove Hardware option in the notification area of the taskbar. You can access it entirely with the keyboard.
Press Windows + B. This keyboard shortcut moves the focus directly to the notification area on the taskbar.
If the hidden icons menu is available, press the Up Arrow key to open it. Use the Arrow keys until you reach the Safely Remove Hardware and Eject Media icon.
Once the icon is selected, press Enter. Windows will display a list of removable storage devices currently connected to your computer.
If you have more than one USB storage device connected, use the Arrow keys to highlight the one you want to remove.
Step 3: Select the USB Drive to Eject
After the list of removable devices appears, continue using the Arrow keys until your desired USB drive is highlighted.
Take a moment to confirm that you have selected the correct device. If multiple USB drives are connected, the names may include the drive label or manufacturer name.
Once the correct drive is highlighted, press Enter.
Windows will begin the safe removal process. In most cases, it only takes a few seconds.
If everything is successful, you will see a notification saying that it is safe to remove the hardware.
Step 4: Disconnect the USB Drive
Once Windows displays the message indicating that the device can be safely removed, gently unplug the USB drive from your computer.
Avoid pulling on the cable if you are using an external hard drive. Instead, hold the connector firmly and remove it carefully.
Your USB device has now been disconnected safely, reducing the risk of file corruption and hardware problems.
What to Do If Windows Says the Device Is Still in Use
Sometimes Windows displays a message saying that the device cannot be stopped because it is currently in use.
This usually means that an application, File Explorer window, or background process is still accessing the USB drive.
Close any File Explorer windows showing the contents of the USB drive. Also close any applications that may have recently opened files stored on the device.
After closing everything, repeat the keyboard steps by pressing Windows + B, locating the Safely Remove Hardware icon, selecting your USB drive, and pressing Enter again.
If the device still cannot be removed, wait a minute and try again. As a last resort, restart your computer before disconnecting the USB drive.
Use File Explorer with the Keyboard
If you prefer, you can also eject a USB drive directly from File Explorer without using the notification area.
Press Windows + E to open File Explorer.
Use the Tab key until the navigation pane is selected. Navigate to This PC using the Arrow keys.
Continue pressing Tab until the drives are listed. Use the Arrow keys to highlight your USB drive.
Press Shift + F10 to open the context menu. On some keyboards, you can also use the Menu key if available.
Use the Arrow keys to select Eject, then press Enter.
Wait until Windows confirms that the drive can be safely removed before unplugging it.
Verify That the Drive Has Been Removed
After ejecting the USB drive, confirm that Windows no longer lists it in File Explorer.
Press Windows + E to open File Explorer again and check This PC.
If the USB drive no longer appears in the list of drives, the device has been successfully disconnected.
This quick check gives you confidence that Windows has completed the removal process properly.
Difference Between Ejecting and Simply Unplugging a USB Drive
Many users wonder whether ejecting a USB drive is really necessary. Modern versions of Windows often use Quick Removal as the default policy for USB drives, which reduces the need to manually eject them. However, if files are still being written or read, unplugging the device immediately can still cause data corruption.
Using the Eject option ensures that Windows finishes all pending operations and safely disconnects the storage device before you remove it.
What Is the Safely Remove Hardware Feature?
The Safely Remove Hardware feature tells Windows to stop communicating with the USB device. It closes active connections, flushes cached data to the drive, and prepares the hardware for safe removal.
Using this feature regularly helps prevent damaged files and reduces the chance of file system errors.
Why Windows Refuses to Eject a USB Drive
If Windows refuses to eject a USB drive, the most common reason is that a program is still using it.
Applications such as media players, photo editors, antivirus software, and backup programs can keep files open in the background.
Closing these applications usually solves the problem. Restarting Windows Explorer or restarting the computer can also release the device if necessary.
Can You Create a Keyboard Shortcut for USB Ejection?
Windows does not include a default keyboard shortcut that immediately ejects a specific USB drive. However, advanced users can create custom shortcuts using PowerShell, Command Prompt, or third-party utilities.
For most people, using Windows + B followed by the Safely Remove Hardware menu remains the easiest and safest keyboard method.
FAQs
Can I eject a USB drive without using a mouse?
Yes. Windows allows you to eject a USB drive entirely with the keyboard by using Windows + B, navigating to the Safely Remove Hardware icon, selecting your USB device, and pressing Enter.
Is it safe to unplug a USB drive without ejecting it?
It may be safe if no files are being accessed and the drive uses the default Quick Removal policy. However, ejecting the drive is still the safest practice because it ensures all pending operations have finished.
Why is the Eject option missing?
The option may be unavailable if the device is still being used by an application. Close all files and programs that are accessing the drive, then try again.
What if Windows says the USB device is busy?
Close File Explorer windows and any programs using files on the USB drive. Wait a few moments and try ejecting it again. If the message continues to appear, restart your computer.
Can I use these keyboard steps in both Windows 10 and Windows 11?
Yes. The keyboard methods described in this guide work in both Windows 10 and Windows 11, although the appearance of the notification area may differ slightly.
Will ejecting a USB drive delete my files?
No. Ejecting only disconnects the storage device safely. Your files remain on the USB drive.
Summary
Knowing how to eject a USB drive using the keyboard in Windows is a valuable skill that can help protect your files and improve your workflow. By using Windows + B to access the notification area or Windows + E together with Shift + F10 in File Explorer, you can safely remove USB storage devices without touching your mouse.
Always remember to close open files, wait for file transfers to complete, and look for the confirmation message before unplugging the drive.
Making safe ejection a regular habit helps prevent data corruption, protects your important files, and keeps your USB storage devices working reliably over time.
