Originally posted by MJKoski Even with some wide angles fireworks may be too close to the camera for infinity focusing to produce best results. Modern sharp designs shot with nearly open aperture are very tricky. Thus, always manually focus at known distance where the fireworks are beforehand and you are set. This means magnified liveview. OVF is not enough.
Yes a wide aperture is great for low light, but produces just a narrow band of the scene in focus, especially at close range.
Live view, with digital zoom and focus peaking is ideal for manual focus work such as this. Actually this is another of those times where mirrorless is as good as a DSLR, given you're running the DSLR in 'mirrorless mode' anyway.
Again though, can the OP confirm they had Pentax sensor SR stabilisation turned off whilst mounted on a tripod?
If not, this could account for the blur when every other aspect should have produced a good sharp shot.