How to clear keyboard buffer

Hi,

How can i clear the command. Suppose using esc k i retrieved teh command, but for some reason I want to clear and type fresh one... how can i do that.

thx

Not sure I understood...
I will explain what I would do if I were to look for a hard to type command line that need afterward some revision:
Using Esc-k I would look for the command, once found, type v so it is loaded in vi, modify the line, and when finished - coming out of vi it would be executed...

Just press ctrl-c and start a new search/input whatever.