keys are not transmitted immediately

Sometimes I have the following effect on my teamviewer 15.1.3937 connection from Ubuntu 18.04 to Ubuntu 18.04:

Only after each other keystroke the characters are transmitted to the remote system. 
Example (typed characters; transmitted characters):

"a" ; ""
"ab";"ab"
"abc";"ab"
"abcd";"abcd"
"abcde";"abcd"
"abcdef";"abcdef"

This behavior makes it very difficult to do any editing because every second keystroke is invisible initially and then two keystrokes appear at once.

The behavior only appears in some sessions, but when it does it makes working near impossible. Is this a known phenomenon? Is there any remedy? 

Tagged: