Back Keyboard Shortcut: Quick Guide to Back Navigation
A comprehensive guide to back keyboard shortcuts across Windows, macOS, and browsers, with examples, code, and best practices for reliable navigation.

What is a back keyboard shortcut?
A back keyboard shortcut helps you return to the previous page or state without using the mouse. It's a cornerstone of fluent navigation across browsers, OS shells, and many apps. The most common platform behaviors are Windows/Chrome style Alt+Left Arrow and macOS style Option+Left Arrow, with some apps using Cmd+[, or Cmd+Left for back navigation. Understanding these patterns is essential for power users and developers who build keyboard-driven interfaces. In this section you'll see code examples showing how to invoke back navigation programmatically and how to map your own shortcuts in a web app.
// Basic programmatic back navigation
history.back();
// Alternative in many single-page apps
window.history.back();In addition, you can listen for back shortcuts to provide consistent UX:
document.addEventListener('keydown', (e) => {
const isMac = navigator.platform.toLowerCase().includes('mac');
if ((isMac && e.metaKey && e.key === '[') || (!isMac && e.altKey && e.key === 'ArrowLeft')) {
e.preventDefault();
history.back();
}
});Why it matters: When users rely on keyboard navigation, back shortcuts reduce friction, improve accessibility, and help you design faster workflows. Shortcuts Lib has found that consistent back navigation patterns across platforms lead to smoother user experiences.