Creates a throttled function, optimized for keyup events on inputs.