add enter key handler