Improved cursor movement and new line behaviour.