Input:text add enter and esc events