Can't Use Shortcut

Question

Does anyone else have the problem that after using blender for a while, maybe 10-15 minutes, the shortcuts like S, G, R or Z no longer work? The tab to switch edit or object mode works fine. Is it because I switch to a chrome tab to watch tutorial videos?

I temporarily fix it by closing and reopening the app, but I want to find a better way