Follow us on Twitter @LiquipediaSC2 if you'd like to be kept up to date on all things StarCraft II!


From Liquipedia StarCraft 2 Wiki


Hotkeys execute actions by pressing a key. Hotkeys are bound to predefined actions and cannot be changed mid-game.1 For example, a Barracks will produce one Marine when the A key is struck. Because there is no mouse movement, using the hotkey is faster than clicking on the Marine icon after selecting the Barracks.

Note that any hotkeys listed in this article assume the default hotkey settings, using a standard American QWERTY keyboard. If you use an alternate keyboard layout through the Windows layout manager, hotkeys will function as if you were using a QWERTY keyboard, but will be relabeled to accommodate your keyboard - that is to say, if you have an A key where the Q key would be for QWERTY, most hotkeys will treat an A as a Q. However, keyboard layout changes made through other methods (registry editors like Sharpkeys, for example, or hardware-mapped keyboard layouts) are invisible to StarCraft 2's client, and you must adjust the hotkeys as necessary.

Hotkeys also refers to keys that can be assigned to units and buildings or locations. Units and buildings are assigned to the number keys (1-0) along the top row of the keyboard. Locations are assigned to F5 through F8. To assign units or buildings to a hotkey (sometimes called a control group), select the units you wish to assign and then press Ctrl+# where # is the key you want to assign them to. If you wish to add units to a control group without overwriting the units already in the group you may also press Shift+#.

Hotkeys are stored in the account profile folder in your Windows My Documents folder. You can manually edit the hotkey file, and, although probably illegal for tournament play, there are a lot of fun tricks only possible this way. For example, more than 2 keys can be assigned to the same action. Although not considered a hack, this sort of editing is outside the scope of this article, and maybe breaks the wiki's rules anyway. Google it.

1. Hotkeys can be changed mid-game, but doing so in a multiplayer game is difficult, since the game is not paused. In single-player modes, however, it is easy. Try playing a Custom game against a Very Easy AI to try out new layouts without reloading every time.

Benefits of Using Hotkeys[edit]

A keyboard, although blunt, is a faster and more precise and exact instrument than a mouse; thus, hotkeys offer fast, precise, and exact execution of commands. A mouse must be navigated across the screen to execute commands; even assuming a very high DPI setting and perfect accuracy on the part of the player, clicking the mouse button still takes approximately the same amount of time as pressing a key. Thus, using a hotkey is always faster than using the mouse.

Imagine that the Red Player is using hotkeys, and the Blue Player is not. Let us assume that Blue is adept at using her mouse, and Red is equally adept at using his hotkeys. Blue's actions will typically take her 100ms (milliseconds; 1,000ms = one second) longer than Red. In a ten-minute game, assuming Blue has an APM of 120, her choice to neglect hotkeys adds up to 1.2 wasted seconds per minute. Very few players can control the mouse with the accuracy and celerity requisite to execute commands with only a 100ms delay over hotkeys; for most players neglecting hotkeys, the lost time balloons wildly out of control, and can be measured in minutes, not seconds.

Worse, certain actions can only be performed with hotkeys. For instance, control groups, base centering, and camera bookmarks are not accessible via the mouse. To demonstrate this, let's say that our two players are Terran, and have sent out an SCV to scout the enemy. While scouting they determine that they need more Marines.

Blue (who does not use the keyboard) would need to:

  1. look at the lower left quadrant of her monitor
  2. position the cursor over the minimap
  3. click on the minimap to reposition the camera
  4. look back at the main part of the monitor
  5. click on the Barracks
  6. look at the lower right quadrant of the monitor
  7. position the cursor over the command card
  8. click on the Marine button
  9. look back at the lower left quadrant of her monitor
  10. position the cursor over the minimap
  11. click on the mini-map to zoom over to her scout
  12. position the cursor over the scout
  13. click on her scout

Compare that to Red, who has assigned the 4 hotkey to his SCV and the 5 hotkey to his Barracks. To perform the same actions, he would just need to:

  1. Press 5
  2. Press A
  3. Press 4

Red would not even look at his base. He would use 4 to select his SCV again, and could press 44 to center his screen on the SCV.

Clearly, Red's play will be faster and more efficient at all levels.


Control Group hotkeys
One of the most important aspects of Micro game is to create and to use control groups so that one can quickly control selected sets of units. StarCraft II allows the player to assign the top-row of numbers (1,2,3,4,5,6,7,8,9,0) to groups of units or buildings. These groups can be redefined and reassigned at any time.
Command hotkeys
Command hotkeys are predefined hotkeys that execute a command or issue an instruction to a selected unit/building when pressed.
Camera hotkeys
The F5 through F8 keys are used to quickly zoom the main viewport to a specific location on the battleground. Press Control and the camera key to assign a location. Press the camera key to return to that location. You can assign a new camera location at any time, and it will overwrite the old one.
Building / Unit hotkeys
Starcraft II has several pre-programmed keyboard shortcuts to issue commands to buildings and units. This category of hotkey is defined during the startup of the Starcraft II client and cannot be changed mid-game.
User Interface Hotkeys
This category of hotkey includes shortcuts which control the game client itself as opposed to issuing commands within the game (for instance, commands to bring up the menu).

Group Hotkeys aka Control Groups[edit]

In StarCraft II the number keys at the top of your keyboard can be used to create up to 10 groups of units and/or buildings in order to quickly select multiple items.


To create a control group and assign a hotkey to select it:

  1. Select the units or buildings you wish to have in the group using whatever selection method you prefer
    • draw a box over the units
    • left-click and Shift+left-click individual units
    • Ctrl+left-click a unit to select all of those types of units in the main window
  2. press Ctrl+# to create the group and assign the # key to select it
    • where # is the number 1 2 3 4 5 6 7 8 9 0 key

Alternatively you can press Alt+# to create the group and assign the # key to select it (just like Ctrl+#), but this will also remove the units from other control group(s) they may be part of.

At the top edge of the information area of your main window (at the bottom of your screen) you will see a graphic that shows the group number along with the quantity of units or buildings in the group.


You can't remove units from a group, but you can re-define the group with new units added or current units removed.

  1. Press the # key that corresponds to the group
  2. Shift+left-click on the units you want to add or remove (if no group exists, this creates it).
    • Ctrl+Shift+left-click to add or remove all units of the same type
  3. Press Ctrl+# to redefine the group with the new selection

You can add units to the group by selecting the desired units and pressing Shift+#.


You can quickly add units to a group by selecting them and pressing Shift+#. If some of the units selected are already in the group, only the new units will be added. This can be very useful for boxing your units after reinforcing an army, and adding the new units to the group without having to make sure you have the entire existing group selected (or risk accidentally removing some units from the group.)

Grouping Buildings[edit]

Groups of buildings are defined in the same way as above, but the player selects buildings instead of units. The most common use for this feature is for the player to create groups of their unit creation buildings. For instance, a Terran may create a group of all their Barracks or a Protoss may group their Robotics Facilities together.

When a unit creation command is given to a group of buildings, the spawning of new units is spread evenly across the group. So if a Terran has their group of two Barracks selected and presses the A key twice, they will start spawning two new Marines, one from each Barracks.

Groups of building can also be set to use the same rally point by right-clicking on the location where you want the newly spawned units to move to.

Strategies for Using[edit]

The most common way to use your 10 hotkeys is to divide the keys into unit groups and building groups. Most Starcraft II players are finding that 4 unit control groups is usually sufficient; so keys 1 - 4 are assigned to unit groups while keys 5 - 0 are used for groups of buildings. You should experiment to find the key combinations which feel the most natural and easy to use for you.

Whatever scheme you select, it is best to be consistent. Muscle memory is most effective when each key always does the same thing.

Units may belong to multiple groups. For example, perhaps as a Terran player you'd like to have all of your Marines and Marauders move together as a unit, but when fighting, you'd like your Marauders to focus fire on armored units. You could assign all your infantry to group 1 then create group 2 with only the Marauders.

With the release of Legacy of the Void, Alt+# is now used to remove selected units from all previous control groups when assigned to a new control group.


Ctrl+# will create a new group with selected units.
Shift+# will add selected units to an existing group.
Alt+# will create a new group with selected units and remove these units from existing group or groups.
Ctrl+left-click a unit in the selection panel to select all units of that type.
Shift+left-click a unit in the selection panel to remove that single unit.
Ctrl+Shift+left-click a unit in the selection panel to remove all units of that type.

Command Hotkeys[edit]

Command hotkeys are pre-defined hotkeys which execute a command or issue an instruction to a selected unit/building when pressed. There are general hotkeys which apply for all races and there are race specific hotkeys which issue commands to the buildings and units of that race. In the Micro (StarCraft) section we discuss many of the key and mouse commands which can be used to position your units for attack.

A couple of highlights from that section are worth pointing out here.

Attack / Attack-Move[edit]

The A (Attack) key is an overloaded hotkey. If you press A and then click on an enemy unit or building, your selected units will attack the enemy. If you press A and then left-click somewhere on the map, your selected units will move toward that location, engaging any enemy units they encounter along the way in combat.

Also, pressing A and then clicking on one of your own units/buildings will force your selected units to attack yourself. This can be useful when one of your buildings is accidentally blocking your own units from advancing.

Stop / Hold[edit]

Pressing the S (Stop) hotkey will stop your units in their tracks whether they are moving or not. This comes in handy when you didn't "A-move" your units and they suddenly encounter resistance along the way. A unit which has been stopped will still pursue enemies if necessary.

Stopped units can be baited to move from their location. If you're trying to block a ramp or other chokepoint with your units, you should use the H (Hold Position) hotkey instead. This command forces them to hold their ground instead of pursuing enemies that are moving out of range.


P hotkey is used for Patrol. A unit on patrol will effectively perform an attack-move (or just moving if unit cannot attack like Observer) between its location and the point that you tell it to patrol to. Just like a normal attack-move, the unit will automatically engage any enemy troops that it encounters, unless it has no way to attack them. If an enemy opens fire on the patrolling unit and it has no way to counter-attack, the patrolling unit will run and lose its patrol route. Complex patrol routes can be established by holding Shift while creating the patrol route. The patrol will go from point to point, as per normal queue commands, and return to the point of origin after reaching the last destination, then begin the entire patrol circuit again.

Return Resource[edit]

Terran and Protoss players can optimize construction commands by selecting a worker holding minerals. Issue the build command to that worker by holding Shift pressing C. After the worker has finished that building it will return the resources and resume mining. This will not work for Zerg players because Drones become their structures.

Camera Hotkeys[edit]

By default Starcraft II allows the player to bind the F5 through F8 function keys to focus the camera on an area of the map. Note that there are more than four camera hotkeys available. Cameras five through eight can be defined in the Hotkeys panel of the options menu.


To save a location as a camera hotkey:

  1. Focus the camera on the area of the map you wish to bookmark
  2. Press Ctrl-F# to bookmark that location with that key
    • Where F# = F5, F6, F7, or F8


Pressing F5 through F8 will focus your screen on the section of the map which you have bound it to. The most common uses for camera hotkeys include:

  • Expansion bases
  • Enemy locations
  • Chokepoints

Vigorous, dynamic use of camera hotkeys offers the potential for exceptional efficiency in issuing commands and attending to the battlefield, independent of highly mobile control groups, and not subject to the vagaries of the Backspace key.

Backspace focuses the camera on your town structure (Command Center, Hatchery, or Nexus, or derivatives thereof). If you have more than one, Backspace cycles through them one by one. Note that Backspace will not focus on floating Command Centers or Orbital Command Centers, and will focus on town structures even if they are devoid of resources (e.g. exhausted expansions, macro hatcheries, etc.).

Spacebar focuses the camera on the location for the last event notification. Pressing it again cycles through recent events.

Buildings / Units Hotkeys[edit]

StarCraft II has several pre-programmed keyboard shortcuts to issue commands to buildings and units. See Hotkeys per Race.

User Interface Hotkeys[edit]

In-Game hotkeys[edit]

F9 = Display achievements
F10 = Display the main Menu
F11 = Display the Chat window
F12 = Display the Help window
Alt+G = Ping the map at the current location
Alt+T = Show/hide minimap terrain
Alt+F = Alliance options
Ctrl+Alt+F = Show FPS
Page Up / Page Down = Adjust view
mouse wheel = Adjust view height
Shift + [any command] = Create a series of commands
Spacebar = View last warning area
Backspace = View base
Alt = Show / hide health points bar
F1 = Select idle worker
F2 = Select the entire army
W = Warp-in units

Main Menu hotkeys[edit]

T = Achievements
E = Message Log
O = Options
P = Pause
U = Resume
Q = Quit Game
G = Return to Game

Replay and Observer Mode hotkeys[edit]

A = Compare total mineral, gas and population cost of fightable units
D = Compare units that are being produced, constructions that are being built and technologies that are being researched
I = Compare the amount of mineral and gas gathered within one minute and the amount of workers
L = Compare lost units and their costs
M = Compare APM
Shift + C = Compare EPM
R = Compare current mineral, gas and population
S = Compare the total amount of resources that are spent on technologies and units
U = Compare all units
T = Compare all structures
G = Compare upgrades
N = Close compare window
E = Show visions of all players
F1 - F8 = toggle views among player 1 to player 8
C = Show POV of current player
H = Show / hide HP bar
+ / - = Increase / decrease playing speed
P = Pause / resume replay
V = Limits vision to selected unit's owner. Hold to view.
Ctrl + N = Toggle 1v1 Name Panel
Ctrl + I = Toggle 1v1 Resource Compare Panel
Ctrl + A = Toggle 1v1 Army/Worker Supply Compare Panel
Ctrl + R = Toggle 1v1 Unit/Worker Killed Compare Panel
Ctrl + V = Toggle 1v1 APM Compare Panel
Ctrl + W = Toggle UI (Command Card/Minimap/etc.)
Ctrl + F = Hold to follow the selected unit with camera
Ctrl + Shift + F = Follow the selected unit with camera
Insert = rotate Camera CW
Delete = rotate Camera CCW

See Also[edit]