I have this basic JS code to trigger a search function when users are typing into the \'string\' searchbox, works fine with onkeyup, but I\'d like to have the same function when