Remapping home and end in mountain lion

So I’m used to a certain behavior for the home and end buttons on my logitech edge keyboard. Jumping to the end or the beginning of the page is not the behavior I expect, so after being stung by this sudden change of the entire screen a few times. I finally decided to do something about it and found this lovely blog post describing what todo.

I already had the remap i software installed, the trouble was that it was though figuring out which setting to set.