Home and End keys in cell editor

There’s a problem with the Home and End keys in the text cell editor when there’s a multiline text. They keep moving the caret one line above or below the expected location respectively. Such problem does not exist when the cell contents is expanded though.