fixed deadlock issue with pausing and race condition reading pause state
keys can't be pushed into the buffer while paused now to avoid the keys being read on resume