input loop now looks at all 8 values for space/backspace