lastKeyWasSpace sounds more like a bool to me.