So seems like those methods can help me. I also looked into log_input
which logs every key being pressed. Does sublime saves those keys in some type of log file that I can have access to get those keys.
Let me explain what I am trying to do. I am trying to build a plugin where multiple users can work collaboratively on one file. (kind of like how google docs works). So if one user is typing I need to update the other user's content as well. That's why i need to get the keys and their locations.