Is there a way to globally modify home/end key behavior in OSX to work like it does in Linux/PC? So in many apps home and end go to the top and bottom of the page respectively, whereas I'm used to them going to the home and end of the current line.  Any way to mod this?

I used to have a hack for Firefox, but now I'm on Chrome, and even other apps treat the home/end keys the same way.  A global hack would be ideal.

Thanks!