Fix line movement keys on osx.