bind a key to clean history