Wired the input javascript event to replace the keypress event.