Remove erroneous keystrokes.