How to Factory Reset Mac Desktop without Keyboard

Your Mac's desktop keyboard stopped working, and now you need to perform a factory reset. You can factory reset a Mac without a keyboard using Erase All Content and Settings, Recovery Mode via the power button, or Find My’s remote erase. Before resetting, we suggest you clean up junk files with MacKeeper’s Safe Cleanup to free up disk space.

System Requirements: macOS 10.11 or later

More than 60 Million Downloads

i

AV-TEST certified

i

Notarized by Apple

i

AV-TEST is an independent lab that checks the effectiveness of antivirus apps against real malware samples.

The notarization by Apple is a security measure to check if software is free from malicious components.

Trustpilot is an independent digital platform that hosts insightful and honest consumer reviews.

How to Factory Reset Mac Desktop without Keyboard
Written By   Yana Khodun
Published: June 10, 2026

What to do before Mac factory resetting?

A factory reset erases everything—your files, preferences, and accounts. Since your keyboard isn’t working, you’ll rely on mouse navigation and the on-screen Accessibility Keyboard for password entry. If possible, try to connect keyboard to Mac temporarily via USB before you begin—it’ll make a few steps easier.

A note from our experts: 

 

As the factory reset is the cardinal measure, we usually recommend trying the safer cleanup alternatives that may solve your Mac problems. One of them is to clean up your MacBook’s space with MacKeeper’s Safe Cleanup, as accumulated cache and other clutter is one of the key culprits of more serious issues on your computer.

 

Here’s how to go further with MacKeeper’s Safe Cleanup:

  1. Download MacKeeper, then install and launch the app.
  2. Choose the Safe Cleanup feature from the sidebar menu.
  3. Click the Start Scan button.
  4. Select the files you’re ready to delete and press the Clean Junk Files button to remove them.
MacKeeper's Safe Cleanup window on macOS scans a Mac desktop for junk files after the Start Scan button is clicked, before a factory reset.
Step 1. Wait for MacKeeper’s Safe Cleanup to do its job after pressing the Start Scan button
MacKeeper's Safe Cleanup results on an Apple computer, with detected junk files selected and the Clean Junk Files button ready before resetting.
Step 2. See the scan results, then select unnecessary files and click Clean Junk Files

1. Back up important data (using mouse only)

Don’t let years of photos, documents, and downloads vanish in one click. Backing up is the most important step before any factory reset. If you already use Time Machine with an external drive, starting a backup with your mouse is simple. Just select Time Machine in the upper-right corner, then click Backup Now.  

The simplest way to back up important information on your Mac is to select Time Machine in the upper-right corner, then click Backup Now.

Or here’s the alternative way for you:

  1. Click the Apple menu in the top-left corner.
  2. Open System Settings (or System Preferences on older versions).
  3. Select General, then click Time Machine.
  4. Click Back Up Now.
macOS Apple menu opened in the top-left corner of an iMac to choose System Settings and start a Time Machine backup before a factory reset.
Step 1. Go to Apple menu > System Settings  

 

In System Settings, find the General tab on macOS with Time Machine selected to back up an Apple computer before a keyboard-free Mac factory reset.
Step 2. Select General > Time Machine
Time Machine pane in macOS System Settings, where you Control-click the backup disk and choose Back Up Now to protect MacBook data before resetting.
Step 3. Control-click on the backup disk in Time Machine and press Back Up Now

2. Sign out of Apple ID and disable Activation Lock

Skipping this step can lock your Mac to your Apple ID after the reset. We also warn you that signing out removes Activation Lock and unlinks your account from the device. You can also factory reset MacBook Pro without password if you’ve forgotten your credentials. Here’s how to proceed with the sign out:

  1. Click the Apple menu and open System Settings.
  2. Click your Apple ID name at the top of the sidebar.
  3. Scroll down and click Sign Out.
  4. Enter your Apple ID password when prompted—use the Virtual Keyboard if your physical keyboard isn’t working. To enable it, go to System Settings > Accessibility > Keyboard and toggle it on. This virtual keyboard can be operated entirely with your mouse.
macOS Apple menu opened on an iMac to select System Settings before signing out of Apple ID and disabling Activation Lock prior to reset.
Step 1. Go to Apple menu > System Settings (or System Preferences on older versions)
Apple Account page in macOS System Settings on an Apple computer scrolled to the Sign Out button to remove Activation Lock before a reset.
Step 2. Select your Apple Account, scroll down and choose Sign Out option
macOS menu bar input menu on a Mac desktop with Show Keyboard Viewer selected to type the Apple ID password without a working keyboard.
Step 3. Select Show Keyboard Viewer
Apple ID password prompt on macOS using the on-screen Keyboard Viewer to enter credentials on an Apple device with no working keyboard.
Step 4. Enter your Apple ID password when prompted by using the Virtual Keyboard

A hint from our team: 

 

Also, you can equally use the Accessibility Keyboard to finalize the sign-out of Apple ID. To enable Accessibility Keyboard, follow our visual guidelines below.

macOS Apple menu opened on an Apple computer to choose System Settings and begin enabling the Accessibility Keyboard for mouse-only entry.
Step 1. Go to Apple menu > System Settings (or System Preferences on older versions)
Accessibility settings in macOS System Settings on an iMac with the Motor section open and Keyboard selected to enable on-screen typing.
Step 2. Go to Accessibility > Motor Section and select Keyboard
Keyboard pane in macOS Accessibility settings on an Apple device with the Accessibility Keyboard toggle switched on for mouse-only input.
Step 3. Turn on the Accessibility Keyboard option
macOS Accessibility Keyboard floating on a Mac desktop screen, letting you click keys with the mouse when the physical keyboard fails.
Step 4. Use your Accessibility Keyboard to enter the password

3. Ensure you have a working mouse (wired only)

From our experience, Bluetooth devices often don’t connect in Recovery Mode. That’s why your Magic Mouse might work fine on the desktop but become unresponsive after a restart into startup utility screens.

 

A wired USB mouse is the safest option. If your Mac only has USB-C ports, grab an adapter. If your Mac mouse not working at all, troubleshoot that before you begin the erase process.

How to reset Mac to factory settings without keyboard?

Below are the methods tested by us to factory reset a Mac desktop when the keyboard isn’t functioning. The right approach depends on your Mac model and macOS version—whether you have an Apple Silicon or Intel machine. If you need the standard steps, the process to factory reset MacBook with a working keyboard follows a similar path.

1. Use “Erase All Content and Settings”

In our opinion, this is the easiest and most mouse-friendly method. Available on macOS Monterey or later (on Apple Silicon or T2-equipped Intel Macs), the Erase Assistant lets you wipe your Mac without keyboard shortcuts.

 

On macOS Ventura or later, do the following:

  1. Click the Apple menu and select System Settings.
  2. Click General in the sidebar.
  3. Click Transfer or Reset.
  4. Click Erase All Content and Settings.
  5. Enter your login password (use the Accessibility Keyboard if needed) and follow the prompts.
macOS Ventura Apple menu opened on an iMac to select System Settings before using Erase All Content and Settings for a Mac factory reset.
Step 1. Go to Apple menu > System Settings
The General tab in System Settings on macOS Ventura, with Transfer or Reset selected to factory reset an Apple computer using only the mouse.
Step 2. Select General from the sidebar and choose Transfer or Reset
Transfer or Reset pane in macOS Ventura System Settings showing the Erase All Content and Settings option for a mouse-only Mac reset.
Step 3. Select Erase All Content and Settings…
Erase Assistant on macOS Ventura prompts for the administrator password to unlock and factory reset an Apple computer without a keyboard.
Step 4. Enter your Administrator password to Unlock the Erase Assistant
Erase Assistant on macOS Ventura asking you to select a user account to confirm the factory reset of a Mac desktop using only the mouse.
Step 4. Select the user to confirm actions
Erase Assistant on macOS Ventura prompting for the Apple ID password to sign out and begin erasing an Apple computer with mouse only.
Step 4. Enter your Apple ID Password to sign out  

On macOS Monterey, follow these steps:  

  1. Click the Apple menu.
  2. Open System Preferences, then select Erase All Content and Settings from the System Preferences menu bar item.
macOS Monterey Apple menu opened on an iMac to choose System Preferences before erasing all content and settings without a keyboard.
Step 1. Go to Apple menu > System Preferences
System Preferences menu bar item on macOS Monterey with Erase All Content and Settings selected to factory reset an Apple computer.
Step 2. Press System Preferences and choose Erase All Content and Settings
Erase Assistant on macOS Monterey requesting the administrator password to unlock and start a keyboard-free factory reset of the Mac.
Step 3. Enter your Administrator password to unlock the Erase Assistant
Erase Assistant information screen on macOS Monterey with the Continue button to confirm erasing all content and settings on an iMac.
Step 4. Read the information and confirm by Continue Button
Erase Assistant information screen on macOS Monterey with the Continue button to confirm erasing all content and settings on an iMac.
Step 5. Enter your Apple ID Password to sign out  

Your Mac will restart, erase your data, and leave macOS intact. The entire process works with just a mouse.

2. Use Recovery Mode without keyboard (Apple Silicon Macs)

Apple Silicon Macs (M1, M2, M3, M4, and newer) let you enter Recovery Mode using only the power button—no keyboard shortcuts required, but you’ll need a USB keyboard as the virtual one will be unavailable in the recovery mode.  

Warning: Keep your Mac connected to Wi-Fi or Ethernet throughout the reinstallation.

Now, do the following:

  1. Shut down your Mac. Wait until the screen goes dark and any lights turn off.
  2. Press and hold the power button until you see Loading startup options or the Options icon.
  3. Click Options, then click Continue.
  4. Select an admin account and enter your password via a wired keyboard.
  5. In the Recovery app, select Disk Utility and click Continue.
  6. Select Macintosh HD, click Erase, choose APFS format, then click Erase Volume Group.
  7. Quit Disk Utility, select Reinstall macOS, and follow the instructions.
Top-down MacBook view with the power button highlighted, which you press and hold to reach macOS Recovery Mode on an Apple Silicon Mac.
Step 1. Press and hold the power button
Apple laptop power button circled and held down to load the startup options screen and enter Recovery Mode on an Apple Silicon Mac.
Step 2. Continue holding for startup options
macOS Recovery startup options screen on an Apple Silicon Mac with the Options gear selected and the Continue button to enter Recovery.
Step 3. Select Options and press Continue
macOS Recovery user selection screen on an Apple Silicon Mac asking you to choose an admin account whose password you know to continue.
Step 4. Select a user whose password you know
macOS Recovery user selection screen on an Apple Silicon Mac asking you to choose an admin account whose password you know to continue.
Step 5. Enter your Administrator password to unlock the Recovery app
macOS Recovery app window on an Apple computer with Disk Utility selected and the Continue button to open it before erasing the disk.
Step 6. Select Disk Utility and press Continue
Disk Utility in macOS Recovery on an Apple Silicon Mac with the Macintosh HD volume selected, ready to erase before reinstalling macOS.
Step 7. Choose the Macintosh HD Volume option
Disk Utility in macOS Recovery on a Mac desktop with Macintosh HD selected and the Erase button clicked to wipe the startup volume.
Step 8. Click Erase
Disk Utility erase dialog in macOS Recovery on an Apple computer with the APFS format chosen and the Erase button to wipe Macintosh HD.
Step 9. Select APFS format and press Erase
macOS Recovery app on an Apple Silicon Mac with Reinstall macOS selected after erasing the disk to restore the Apple computer cleanly.
Step 10. Go back to Recovery Mode and select Reinstall OS
macOS reinstallation screen in Recovery on an Apple Silicon Mac, following on-screen instructions to reinstall the system after erasing.
Step 11. Start the macOS installation process and follow the on-screen instructions

3. Recovery Mode on Intel Macs if the keyboard is completely unavailable

This is the trickiest scenario. Intel Macs require holding Command + R during startup to enter Recovery Mode, which needs a working keyboard. Here are your options:

  1. Connect a wired USB keyboard temporarily. Even a basic USB keyboard will work. Plug it in before powering on.
  2. Try a PC keyboard. Use the Windows key in place of Command. Hold Windows + R as you press the power button.

Once you’re in Recovery Mode, follow our instructions for the Intel Mac:  

  1. Open Disk Utility.
  2. Erase the startup disk.
  3. Reinstall macOS.

Now, we’ll show all the process together visually for you.

Intel Mac startup screen with the Command + R keyboard shortcut held to boot into macOS Recovery Mode when the keyboard is available.
Step 1. Press and hold Command+ R
Intel Mac progress bar shown while holding Command + R during startup to load macOS Recovery Mode on an older Apple desktop computer.
Step 2. Wait until the progress bar is complete
macOS Recovery app window on an Intel Mac with Disk Utility selected and the Continue button to open it before erasing the startup disk.
Step 3. Select Disk Utility and press Continue
Disk Utility in macOS Recovery on an Intel Mac with the Macintosh HD volume selected, ready to erase before reinstalling the system.
Step 4. Select Macintosh HD Volume
Disk Utility in macOS Recovery on an Intel Apple computer with Macintosh HD selected, and the Erase button clicked to wipe the volume.
Step 5. Choose Erase
Disk Utility erase dialog in macOS Recovery on an Intel Mac with the APFS format chosen and the Erase button to wipe Macintosh HD.
Step 6. Select APFS format and press Erase
macOS Recovery app on an Intel Mac with Reinstall macOS selected after erasing the disk to restore the Apple computer to factory state.
Step 7. Go back to Recovery Mode and select Reinstall OS
macOS reinstallation screen in Recovery on an Intel Mac, following the on-screen instructions to reinstall the system after the erase.
Step 8. Start the macOS installation process and follow the on-screen instructions

If no keyboard is available, try the remote erase method below.

4. Remote erase using Find My

If Find My was enabled on your Mac before the keyboard stopped working, you can erase it remotely from another Apple device or any web browser.

 

If you prefer doing it from iCloud.com, make sure you’ve granted data access in iCloud settings on your iPhone or iPad device, and then do the following:

  1. Go to icloud.com/find and sign in with your Apple ID.
  2. Click All Devices and select your Mac from the list.
  3. Click Erase This Device and follow the on-screen instructions.
Safari address bar on a Mac showing icloud.com/find typed in to open Find My and remotely erase an Apple computer from any browser.
Step 1. Go to icloud.com/find from any browser
iCloud Find My web page in a browser with All Devices open and the Mac selected from the list to remotely erase the Apple computer.
Step 2. Click All Devices and select your Mac from the list
iCloud Find My web page showing the Erase This Device option to remotely wipe a Mac desktop signed in with your Apple ID from a browser.
Step 3. Erase Device remotely

From an iPhone or iPad, follow our steps below:

  1. Open the Find My app.
  2. Tap the Devices tab and select your Mac.
  3. Tap Erase This Device and confirm.

Important: Your Mac needs to be online for the erase to work. If it’s offline, the wipe happens the next time it connects. Activation Lock stays active afterward, keeping the Mac tied to your Apple ID.

Find My app icon on an iPhone home screen, opened to remotely erase a Mac desktop after its keyboard stopped working before a reset.
Step 1. Open Find My app
Find My app Devices tab on an iPhone with the Mac selected from the device list to begin a remote erase of the Apple computer.
Step 2. From the Devices section, select your Device you want to erase
Find My app on an iPhone showing the selected Mac's panel swiped up to reveal the Erase This Device option for a remote factory reset.
Step 3. Swipe up and find the Erase option
Find My app on an iPhone with the Erase This Device confirmation and Continue button to remotely wipe a Mac desktop tied to your Apple ID.
Step 4. Erase your device by pressing Continue

Final verdict

Factory resetting a Mac without a keyboard is straightforward enough on modern macOS. Apple Silicon Macs running Monterey or later let you use Erase All Content and Settings or enter Recovery Mode with just the power button. Intel Macs are more limited and may require temporary access to the keyboard. When no input devices are available, Find My’s remote erase is a reliable fallback.

 

Whatever method you choose, we recommend you back up your data, sign out of your Apple ID, and use a wired mouse first. Also, clear out junk files before or after a reset— MacKeeper’s Safe Cleanup makes it quick and easy for you.

Use your Mac to the fullest! Sign up and get:
Effective tips on how to fix Mac issues
Reliable advice on how to stay safe online
Mac-world news and updates

Thank you!

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

Here’s another sign you need to upgrade your macOS ASAP:

30% off your MacKeeper subscription

Сopy the code now and use it in the MacKeeper checkout after the upgrade.

Copy Code

Please be aware that this code cannot be combined with any other discounts, offers, or promotions.

Contents

Unlocked
PC

MacKeeper - your all-in-one solution for more space and maximum security.

Try Now

Read more

How to Mirror iPhone to Mac
How to Mirror iPhone to Mac
Transfer Files from Android to Mac
Transfer Files from Android to Mac
arrow

Run Application

step_1

Click Continue

step_2

Click Install

step_1

Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.