Directional inputs are always valid, button inputs are only valid in accordance with the beat. There are also freestyle sections (which replace the spinners from the original Osu), during which all input is valid.
The general documentation can be found here: https://captaindreamcast.github.io/DolmexicaInfinite/osu.html