Autoinsert block elements on keypress