i have been having the same sort of issues with my keyboard latetly, though mine would seem to be a hardware problem with the actual keyboard, probably a loose connection.
Its a wired keyboard, and...