change insert to delete if encouter a backspace