You can move or resize any window using only your keyboard, and it takes about three keystrokes
Most people drag windows around with a mouse, but your operating system gives you a keyboard shortcut that works on Windows, Mac, and Linux. The method differs slightly by system, but the principle is the same: press a key combination, use arrow keys to move or resize, then press Enter to finish. This matters for security because keyboard-only control means you can manage your screen without relying on mouse input — which matters if your mouse is behaving strangely, if you're using an unfamiliar computer, or if you want to verify that window movement is actually under your control and not being manipulated by malware.
Keyboard window control also gives you a way to spot unusual behavior. If a window moves or resizes without your keyboard input, something else is controlling your display. By using keyboard shortcuts yourself, you establish what normal control looks like on your system.
Key Takeaways
- On Windows, press Alt + Space to open the window menu, then press M to move or S to resize, then use arrow keys and Enter to finish.
- On Mac, you cannot move windows by keyboard alone without third-party software, but you can use Mission Control (F3) to see all windows and click the one you want.
- On Linux with most desktop environments, press Alt + F7 to move a window or Alt + F8 to resize it, then arrow keys and Enter.
- Keyboard window control is useful for detecting unusual behavior — if a window moves without your keyboard input, something else is controlling your screen.
How to move a window on Windows
Press Alt + Space while the window you want to move is active (in focus). A small menu appears at the top left of the window with options like Restore, Move, Size, Minimize, Maximize, and Close.
Press M for Move. Your cursor changes to a four-arrow symbol, and the window is now ready to be repositioned. Use the arrow keys (up, down, left, right) to move the window across your screen. Hold an arrow key to move faster. When the window is where you want it, press Enter to lock it in place.
If you want to resize instead, press Alt + Space again, then press S for Size. The cursor changes to a resize symbol. Use arrow keys to make the window larger or smaller — up and down arrows change height, left and right arrows change width. Press Enter when you're done.
How to move a window on Linux
Most Linux desktop environments (GNOME, KDE, Cinnamon) support keyboard window control, though the exact keys vary. The most common shortcut is Alt + F7 to enter move mode. Press this while a window is active, and the window becomes attached to your cursor movement — use arrow keys to reposition it, then press Enter to confirm.
To resize on Linux, press Alt + F8 while a window is active. Arrow keys now control the window size instead of position. Press Enter when finished. If these shortcuts don't work on your system, check your desktop environment's settings under "Window Management" or "Keyboard Shortcuts" — different distributions and desktop managers use different defaults.
Why Mac doesn't have a built-in keyboard move shortcut
macOS does not include a native keyboard shortcut to move windows, which is a deliberate design choice. Apple's philosophy emphasizes mouse and trackpad interaction as the primary way to manage windows. If you need keyboard-only window control on Mac, you can use third-party tools like Spectacle, Rectangle, or Magnet, which add keyboard shortcuts for moving and snapping windows to screen edges.
The closest built-in alternative on Mac is Mission Control, accessed by pressing F3 (or Fn + F3 on newer Macs). This shows all open windows at once, and you can click the one you want to bring to focus. You can also use Command + Tab to cycle through open applications, though this doesn't let you move windows — it just switches between them.
When keyboard window control matters for security
Keyboard-only window management is useful for spotting unusual behavior. If a window moves across your screen without you pressing any keys, or if it resizes on its own, that's a sign something else is controlling your display — possibly malware or a remote access tool you didn't authorize. By using keyboard shortcuts to move windows yourself, you establish a baseline for what normal control looks like.
Keyboard control is also helpful on shared or public computers where you don't trust the mouse or trackpad. If you're using a library computer or a borrowed laptop, using keyboard shortcuts to manage windows means you're not relying on input devices that might have been tampered with or that might be logging your movements.
Troubleshooting keyboard window movement
If Alt + Space doesn't open the window menu on Windows, check whether you have a program running that intercepts keyboard shortcuts — some gaming software, accessibility tools, or remote desktop applications override these keys. Try clicking the window's title bar first to make sure it's active, then try the shortcut again.
On Linux, if Alt + F7 doesn't work, your desktop environment may use different shortcuts. Open your system settings and search for "Keyboard Shortcuts" or "Window Management" to see what your system has assigned. Some environments let you customize these shortcuts, so you can set them to whatever you prefer.
If you're using a keyboard without a numeric keypad or with a non-standard layout, arrow keys should still work — they're the standard cursor movement keys on all keyboards. If arrow keys aren't responding during window move or resize mode, press Escape to exit the mode and try again.
Frequently Asked Questions
Can I move a window to a specific position, like the top-left corner?
Keyboard shortcuts move windows by arrow key presses, so you can't jump directly to exact coordinates. However, you can press and hold an arrow key to move faster, or use multiple taps to fine-tune position. On Windows, some third-party tools let you snap windows to grid positions using keyboard shortcuts.
What if I want to move a window that's behind other windows?
Use Alt + Tab (Windows or Linux) or Command + Tab (Mac) to cycle through open windows until the one you want is active, then use the move shortcut. Alternatively, click the window's title bar to bring it to focus, then use the keyboard shortcut.
Does moving a window with the keyboard use less computer power than dragging with the mouse?
No — the performance difference is negligible. Both methods send the same instructions to your operating system. Keyboard control is useful for security and accessibility, not for saving system resources.
Can I move multiple windows at once with the keyboard?
No — keyboard window control moves one window at a time. You would need to repeat the process for each window you want to reposition.