I've never experienced this with typing, but I can definitely see how the amount of time it takes to complete a task can cause even more delay. For example, long page refresh times in development can take so long that I switch thoughts entirely and end up on hacker news. Using docker-sync with docker for mac made my page refreshes much faster and has had a very positive impact on my focus and productivity.