modify javascript event from ketup to input