Move input copying to input_process()