Add tab and un-tab functionality to text editor.