Have you tried another keyboard to see if the other keyboard also has "lag?"
--If not, try another keyboard. If it lags, then your system may be too slow for the games you are playing.
-- If the other keyboard works, maybe you should replace your keyboard.