Implementing an isTyping feature