If you're used to more-sane behavior from your Home/End keys, like "going to the end of the current line" instead of "going to the end of the entire document", this should fix up your keyboard behavior.
Inside ~/Library, create a folder named "KeyBindings"
Create a file named DefaultKeyBinding.dict
This file should contain:
{
/* Remap Home / End to be correct */
"\UF729" = "moveToBeginningOfLine:"; /* Home */
"\UF72B" = "moveToEndOfLine:"; /* End */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:"; /* Shift + Home */
"$\UF72B" = "moveToEndOfLineAndModifySelection:"; /* Shift + End */
}
Give the OS a minute or so to read the file, or quit-and-restart any misbehaving applications, and it should Just Work.
Edit: Fixed per SpiceWare so the \'s show up.