Trigger input event on button click