Repeated keystrokes sometimes occur in a terminal window on a Linux virtual machine.
To work around this issue, try one or both of the following: