I think you can certainly read it after Wizard and Glass. In fact, while I was reading it, I was impressed at how King hinted at elements of the later books without spoiling them. While it may slow down the series a bit to have two flashback novels back to back, I think Keyhole does form a nice connecting work between volumes 4 and 5.