const textInput = document.getElementById('input-search'); textInput.addEventListener('keydown', (event) => { if (event.key === 'Enter') { alert('teste55'); //console.log('Enter key pressed!'); // Perform desired actions here } });