Register input handler