added debug console.log for enter key issue