Reintroduced throttling for the key thread. Fixes #99