If you spend a lot of time typing the plain text, writing the program, I suggest that you should remember the below Mac keyboard shortcuts to save your time. Here are a few quick shortcuts to set the matter straight for everyone in Mac OSX.
- Command + Right Move to beginning of line.
 - Command + Left Move to end of line.
 - Command + Up Move to beginning of document.
 - Command + Down Move to end of document.
 - Command + Delete Delete the entire line of text or paragraph behind the cursor.
 - Option + Delete Delete the entire word behind the cursor.
 - Shift + Command + Left Select text to beginning of a line.
 - Shift + command + Right select text to end of a line.