Mac OSX Home and End Key

I'm using Arduino 0018 on a Mac.

I would like the Home key to go to start of line and End key to end of line but at the moment it goes to top of page and end of page.

Is there a way to change this?

I've already have an entry in the DefaultKeyBinding.dict file but it still doesn't work.

It is really annoying at moment.