> I want to build an ideal device for use in PSpice simulations, a Keyed
> Peak Detector...
>
> Finds the maximum peak value of an input voltage while it's enabled
> ("keyed"), and "dumps"/outputs zero when not enabled.
>
> Any ideas?
That sounds like the old 'Keyed AGC' on TVs. A pulse from the flyback set a reference once each line, then the detected signal level was used to set the RF & IF gain.