I've seen similar glitches with hardware keyboards in general. Some apps (including Apple's) don't always respond correctly to the software keyboard show/hide events when they happen on the fly.
My keyboard sometimes fails to register when i hit the spacebar key and i have to pull it off and reattach it .is it worth changing it if i have to wait yonks to replace it?