How to Move a Window With Your Keyboard (Windows, Mac & More)

Most people drag windows around with a mouse without thinking twice. But what happens when your mouse dies, your trackpad stops responding, or a window gets stuck somewhere off-screen where you can't click it? Knowing how to move a window using only your keyboard is one of those skills that feels unnecessary — right up until the moment you desperately need it.

Why Move a Window With the Keyboard?

There are a few situations where keyboard-based window movement matters:

  • A window has opened off-screen (common after disconnecting a monitor)
  • Your mouse or trackpad is broken or unavailable
  • You prefer keyboard-driven workflows for speed or accessibility
  • You're working with multiple monitors and want precise repositioning

The good news: every major operating system has a built-in way to move windows from the keyboard. The approach differs by OS, and in some cases by window type or application.

How to Move a Window With the Keyboard on Windows

Windows has the most direct built-in method, and it works across virtually all standard application windows.

The Move Command (Windows Key Method)

  1. Make sure the window you want to move is active (click its taskbar button or use Alt + Tab to select it)
  2. Press Alt + Space to open the window's system menu
  3. Press M to activate the Move command
  4. Use the arrow keys to reposition the window
  5. Press Enter to confirm the new position

The window will "snap" to your cursor movement in increments. Holding an arrow key moves it continuously. This works even when the window is minimized to just a title bar, and — critically — it works when a window is partially or fully off-screen.

Windows Snap Shortcuts 🪟

Windows also has keyboard shortcuts for snapping windows to predefined screen positions:

ShortcutAction
Win + Left ArrowSnap window to left half of screen
Win + Right ArrowSnap window to right half of screen
Win + Up ArrowMaximize window
Win + Down ArrowRestore or minimize window
Win + Shift + Left/RightMove window to the next monitor

These aren't freeform moves — they jump the window to fixed positions — but they're faster for common repositioning tasks.

How to Move a Window With the Keyboard on macOS

Mac handles this differently. There is no built-in system-level keyboard shortcut to freely move a window using arrow keys the way Windows does. Apple's design philosophy leans toward trackpad and mouse interaction for window management.

That said, a few options exist:

Using Accessibility Features

macOS has a Mouse Keys feature (under System Settings → Accessibility → Pointer Control) that converts your numeric keypad into a mouse pointer controller. Once enabled, you can hold a window's title bar focused and move it — but this is a clunky workaround rather than a clean solution.

Third-Party Window Managers

Most Mac users who want keyboard-driven window control install a third-party tool. Apps in this category let you assign custom keyboard shortcuts to move and resize windows to specific positions or nudge them pixel by pixel. Popular categories of tools include:

  • Grid-based managers — divide the screen into zones and snap windows to them
  • Free-move managers — allow arrow-key nudging with configurable step sizes
  • Tiling window managers — automatically organize all open windows into a layout

The specific tool that fits your workflow depends on how precisely you need to control window placement and whether you want automatic tiling or manual shortcuts.

How to Move a Window With the Keyboard on Linux

Linux behavior varies significantly depending on your desktop environment:

  • GNOME: Hold Super (Windows key) + Alt, then click and drag — this moves the window without needing the title bar. For keyboard-only, GNOME doesn't have a built-in arrow-key move command by default, but it can be configured.
  • KDE Plasma: Press Alt + F7 to enter move mode, then use arrow keys. This mirrors the Windows approach closely.
  • XFCE / others: Similar to KDE; check your desktop environment's keyboard shortcut settings under Window Manager.

Linux users on tiling window managers (like i3 or Sway) operate in a different paradigm entirely — windows are positioned by layout rules, and movement is controlled by configured key bindings rather than freeform dragging.

The Off-Screen Window Problem

One of the most common reasons people search for this is a window that's gone off-screen — visible in the taskbar, but impossible to click or drag back. This almost always happens after:

  • Disconnecting a secondary monitor while an app was open on it
  • Changing display resolution or scaling settings
  • Remote desktop sessions with different screen dimensions

On Windows, the Alt + Space → M → Arrow Keys method reliably recovers these windows. On Mac, without a third-party tool, your options are more limited — forcing the app to quit and reopen, or using Mission Control to locate and drag it back, are the typical workarounds.

Variables That Affect Which Method Works for You

The right approach depends on a handful of factors specific to your setup:

  • Operating system and version — Windows has the most native support; Mac requires workarounds
  • Desktop environment (Linux users) — each environment has different defaults
  • Whether you use multiple monitors — this changes which shortcuts are most useful
  • How often you need this — occasional users may be fine with native shortcuts; power users often find a dedicated window manager worth configuring
  • Accessibility needs — Mouse Keys and similar features serve different purposes than speed-focused shortcuts
  • Application type — some fullscreen apps, games, or certain dialog boxes don't respond to standard window move commands

The difference between a user who just needs to rescue an off-screen window once a year and someone building a keyboard-driven productivity setup is significant — and those two people need different solutions. 🎯