Hmm, I don't really know why you need to flush anything :? Are you using Ogre, and if so, how are you toggling full screen?
What key(s) are being repeated?
It would possibly be possibly to add a flush method to the keyboard classes, but I would like to understand what you are seeing more before I add something perhaps unneccessarily.