Lol, yea..i've had that problem with Wireless keyboards before...hence why i never get wireless anymore

They're too inconsistant.
I'd suggest try getting new batteries for the keyboard, try resyncing the keyboard with the receiver..try moving the receiver closer as well...that normally works
If it's still playing up, try and keep the receiver and the keyboard in line of site...