Key doesn't count when playing GTA V

I have just realised when I am playing GTA V it doesn’t count keys and clicks. However, when I am playing other rockstar games it does count but I play other rockstar games from steam and GTA V using rockstar games social club. Is anyone facing this problem and do you know how to fix it?