source: http://mwholt.blogspot.com/2012/09/fix-home-and-end-keys-on-mac-os-x.html
If you use a keyboard that's not designed specifically for Macs, you probably are familiar with the annoying mapping of the Home and End keys: they scroll to the beginning or end of an entire document, with no regard to the cursor's location.
Fortunately it's an easy fix. (Note: This works for native Cocoa apps only, not