adding keyup event