removed unnecessary keyup event