Fix input code to not ignore queued inputs