I am trying to create a function that is enabled through an onkeyup listener attributed to an input element: