Keyboard Shortcut for Backspace: A Practical Cross-Platform Guide
Master backspace shortcuts across Windows and macOS, including character delete and word-level deletion. Shortcuts Lib delivers practical guidance for editors, terminals, and browsers.

According to Shortcuts Lib, the core backspace action is the character-left delete: the Backspace key on Windows and the Delete key on macOS. For word-level deletion, use Ctrl+Backspace on Windows and Option+Backspace on macOS. This quick guide outlines how these shortcuts apply across editors, terminals, and browsers.
The core backspace action across platforms
Backspace deletes the character to the left of the cursor in most inputs. On Windows this is the Backspace key; on macOS, the Delete key performs the same function in many apps. For word-level deletion, use Ctrl+Backspace on Windows and Option+Backspace on macOS. Shortcuts Lib analysis from 2026 shows these patterns are the most universally supported across editors, terminals, and browsers.
<!-- Basic Backspace in an input field -->
<input id="demo" value="Sample text" />
<script>
document.getElementById('demo').addEventListener('keydown', e => {
if (e.key === 'Backspace') {
console.log('Backspace pressed');
}
});
</script>Notes: Cross-app consistency is valuable; test in your target apps to confirm behavior.
secondBlockFlag":false
-AppendedNote":"Cross-app consistency is valuable; test in target apps to confirm behavior."
blocktype":"markdown"},"secondBlockFlag":false,
Steps
Estimated time: 45-60 minutes
- 1
Define scope and scenarios
Identify where backspace shortcuts will be most useful: text fields, editors, and terminal prompts. Map common tasks you want to support (character delete, word delete, line-level actions).
Tip: Start with the simplest case: single-character backspace in a plain input. - 2
Capture key events
Add listeners to detect Backspace and word-deletion combos across platforms. Normalize event properties (key, ctrlKey, altKey).
Tip: Prefer e.key === 'Backspace' over older keyCode values. - 3
Implement word deletion
Implement logic to delete the previous word when Ctrl+Backspace (Windows) or Option+Backspace (macOS) is pressed.
Tip: Keep a robust regex to identify word boundaries. - 4
Editor bindings
Provide editor-specific bindings (e.g., VS Code, Google Docs) so users see consistent behavior.
Tip: Deliver per-app instructions alongside general guidance. - 5
Test across apps
Test in editors, browsers, and terminals. Validate both single-character and word-level deletions.
Tip: Create a small test page and a shell session to verify shortcuts. - 6
Document and share
Publish your guide with examples, caveats, and troubleshooting steps.
Tip: Be explicit about platform differences to avoid confusion.
Prerequisites
Required
- Required
- Required
- Basic familiarity with Ctrl/Cmd-modified shortcuts (e.g., Ctrl+C, Cmd+C)Required
- CLI access or a shell/terminal for command examplesRequired
Optional
- Optional: Browser (Chrome/Edge/Safari) for testing web app shortcutsOptional
Keyboard Shortcuts
| Action | Shortcut |
|---|---|
| Backspace: delete a single character to the leftIn most editors and input fields | ⌫ |
| Delete the previous wordText editors and browsers | Ctrl+⌫ |
| Clear current line (Unix shells)Bash/Zsh readlines | Ctrl+U |
Questions & Answers
What is the keyboard shortcut for backspace on Windows?
Backspace deletes the character to the left of the cursor. In many apps, Ctrl+Backspace deletes the previous word; the crossing-OS equivalent on macOS is Option+Backspace.
Backspace deletes the character to the left; Ctrl+Backspace deletes the previous word in many apps, and on Mac that's Option+Backspace.
What is the keyboard shortcut for backspace on macOS?
On macOS, the Delete key performs the backspace action in most apps. For word deletion, use Option+Backspace.
Mac uses Delete for backspacing; Option+Backspace deletes the previous word.
How do I delete a word to the left?
Windows users can use Ctrl+Backspace; macOS users should use Option+Backspace. Some editors may map Alt+Backspace as an alternative.
Ctrl+Backspace on Windows or Option+Backspace on Mac deletes the previous word.
Can I customize backspace shortcuts in editors?
Yes. Many editors provide keybindings settings to remap backspace and word-deletion commands to fit your workflow.
Absolutely—use the editor's keybindings or settings to remap.
Is there a shortcut to clear a line in terminals?
In Bash and Zsh, Ctrl+U clears the line from the cursor to start; Ctrl+W deletes the previous word. Shells vary by configuration.
Typically Ctrl+U clears the line; Ctrl+W deletes the previous word in many shells.
What about cross-app consistency?
Expect some variations. Always document per-app differences and provide fallbacks for users.
There are differences across apps; document them for users.
Main Points
- Know the basic backspace action and platform differences.
- Use Ctrl+Backspace or Option+Backspace for word deletion.
- Test across editors, terminals, and browsers for consistency.