created an array to store buffer commands after enter is hit but before
it is cleared.