coloring text properly when typing