Add input handler for client