react to enter and separators