add handling of enter key