I assume that with ‘one-to-many’, you mean to have one single input that is mapped to outputs at multiple time steps. The best approach would probably depend on your actual problem, but one way would be to have an initial trainable input vector that is simply fed as input for every single time step.
Before I get into too many details here, I would actually recommend this well written SO answer that explains the implementation details very well, for Keras though
Excluding the input of a specific time step, all the input of the remaining time step is set to 0.
That would be for sure one possible approach, but keep in mind, that information in an LSTM, represented by the state vectors, “vanishes” across the time dimension. If you feed the input features only once, say at the first time step, it’s likely, that they won’t be fully propagated to the later time steps and hence the model would have a bias across the time dimension. Hence, you might want to use the same feature vector as input for every time step.