correct method to demo the scenario to bind input event instead of "key press"