the issue is with peertube chat. it only gives me down to the minute information on when a chat appears and I needed to prevent the same comment from inputting the same command, so repeated inputs in the same inputs not going through was the sacrifice.
the work around is to load the last 5 comments from chat and just see if there was a change in the last 5 comments so that way repeated commands would push out unique comments (both in content and time) making them go through, but I haven't been able to do that. on top of that doing the a4 commands helped fix the issue since "a4" and "a" are different commands.
other than that i have to put in a refresh commands for firefox browser because that cuts the programs connection to chat