add update function
addBeforeCursor was replaced by insertText
improved keypress event listener
add option to automatically insert closing brackets