I met some trouble with a javascript.
In fact I have in my database many records that are abreviations and ther equivalent,
for example, replace tel => telephon
When using keyup() the event handler only returns the keycode of the pressed key. For instance an x results in e = 88.
keyup()
Use $("#tags").val() to get the value of the input element.
$("#tags").val()