Modified move-beginining-of-line and end-of-line.