Shift may refer to any of the following:
1. The Shift key is a keyboard modifier key that allows a user to type a single capital letter. For example, pressing and holding the Shift key while pressing the letter a key would generate a capital A letter. On US keyboards, the Shift key is the second largest key located on both the left and right side of the keyboard, below the Caps lock key, and Enter or Return key. The picture is a close up view and example of the Shift key.
Unlike the other modifier keys, the Shift key is found on Apple computer keyboards and performs the same function as the PC. With Apple keyboard shortcuts, the Shift is represented as an up arrow, similar to that shown in our example picture.
Shift keys locations
Below is an overview of a computer keyboard with the Shift keys highlighted in blue.
How to use the Shift key
To use the Shift key to capitalize letters, press and hold the Shift key, and push the letter you want to capitalize. On U.S. keyboards, hold Shift and press the numbers on the top of the keyboard to type the alternate symbols (e.g., !, @, #, and $) of those keys.
On most computers (except those running OS X) if the Caps Lock key is enabled and you press the Shift key and a letter the letter will be lowercase.
The Shift key is also used with shortcut keys. For example, holding down the Shift key and pressing the arrow keys will highlight text in the direction of the arrow key you press. Below are other examples of shortcuts that use the Shift key.
Shift key shortcuts
Also, the Shift key can is be used with shortcuts in the Microsoft Windows operating system.
|Ctrl+Shift+Esc||Open the Task Manager.|
|Shift+Arrow Key||Holding down the Shift key while pressing an arrow key highlights text one character at a time in the direction of pressing the arrow key. If you also hold down Ctrl, it will highlight one word at a time.|
|Hold down Shift||
In some versions of Windows, when a disc is inserted into the computer, software on the computer will automatically run. This feature is called autorun. If you hold the Shift key, you will disable this feature, and the software must be run manually, instead.
|Shift+Tab||Moves back to the previous object. For example, pressing a tab while in a browser moves between each of the links on the web page. Pressing Shift+Tab moves between each of the links in the opposite direction.|
|Press Shift five times||Open Sticky Keys. Once activated you can press both Shift keys at the same time to deactivate Sticky Keys.|
|Hold down the Left Shift key for eight seconds||Open Filter Keys.|
|Left Alt+Shift+Num Lock||Open Mouse Keys.|
|Left Alt+Shift+Print Screen||Open High Contrast.|
How many Shift keys are on a keyboard?
On all computer keyboards today including PCs, Apple, and Chromebooks (desktops and laptops) there are two Shift keys.
Some keyboards may not have the word "Shift" on them but are still considered a Shift key. For example, there are some laptop keyboards with smaller Shift keys that only have an up arrow.
Why are there two Shift keys on the keyboard?
There are two Shift keys on a computer keyboard to help with capitalizing letters on both sides of the keyboard. For example, if you wanted a capital "z" you use your pinky on your right hand to press and hold down Shift and then press the "z" key with your left hand to make a capital "Z". Trying to make a capital "z" with only the left hand would require you to move your hand since the pinky cannot press both keys at the same time.
History of the Shift key
Early punch card machines that entered data into a computer using a punch card did not use a Shift key.
2. On an iPhone or iPad, the Shift key is located at the bottom-left of the on-screen keyboard. When the Shift key is gray, it is not enabled and letters are typed as lowercase. When the Shift key is white, and the up arrow is solid black, letters are typed as uppercase. When tapping the Shift key, the letters change from lowercase to uppercase on the on-screen keyboard, to let the user know the letters will be typed as uppercase letters.
3. Shift is a Microsoft command line command that changes the position of replaceable parameters in a batch program. Additional information about this command found on our shift command page.
4. In some programming languages shift is a function that removes the first element of an array. For example, in the Perl code below shift removes "one" from the beginning of the array to make it "two three".
my @example = ('one', 'two', 'three'); shift @example; print "@example"; #Prints: two three
If you want to add to the end of an array, use the push function. If you want to remove the first element of the array, use the shift function.
Bash builtin command
In the bash command shell, shift is a built-in command which shifts the values of command-line arguments for processing in a script.
For more information, see our shift bash builtin command reference.