added keyup event handler