updates output box before keyup

this is especially useful for when keys are held down