Added input event handling to throttledInput