When you are editing text under Mac OS X, you can use the following keyboard shortcuts:
: move to beginning of line
: move to end of line
: erase character
: erase characters till end of line
: move backward one character
: move forward one character
: move to previous line
: move to next line
You can use the above keyboard shortcuts in TextEdit, when you enter URL address in Safari browser, in the command line on the Terminal app etc. In fact it applies to all apps that make use of the Mac OS X edit control.
These are system default keyboard shortcuts that are derived from Mac OS X’s Unix underpinning. These are in fact the Emacs editor’s keyboard shortcuts. Emacs, released over 30 years ago, is actively being developed and is still a popular extensible text editor especially among programmers with Unix/Linux background.
It is a time saver if you remember these keyboard shortcuts by heart. But on Mac keyboard, the location of the Control key make these keyboard shortcuts awkward to type. You can type faster if you reassign the CapsLock key to function as Control. Does anyone still use the CapsLock key?
Fortunately, Apple makes it easy for us to reassign the CapsLock key:
1. Goto System Preferences->Keyboard & Mouse
2. Click on the “Modifier Keys…” button
3. Change the key mapping for CapsLock as shown below and click OK.
![Map Capslock to Control](http://sanziro.com/wp-content/uploads/2009/05/map-capslock-to-control.png)