Very often I encounter this problem in my Debian VPS. When I type characters, the terminal refuse to display them. Instead I get a beep and shows outputs like
(arg : 4) (arg : 5) (arg :-1)
And then, after a while the problem resolves automatically and I can resume typing. I'm wondering what can cause this problem? and how to counter it.