this is very pecular, but somehow the event is being switched to the parent element. so instead i am doing this:
element.addEventListener('keyup', (event) => {
processChange(event.currentTarget, event.target)); // notice event has been added
function debounce(func, timeout = 300){...