Using contenteditable PRE. Reimplementation of ENTER and TAB