xfcelover, I think that has happened here too from time to time, just a glitch and if I remember correctly, it still runs the command on pressing return.
Here running bash in the gnome terminal, the shortcut Ctrl-L
clears the screen. Next time it happens, try clearing the screen. You can then use the up arrow to repeat the same command. If that works, then it's probably nothing to worry about.