buffer input to repeat commands