changed the interaction pattern to save inputs upon key-up rather than waiting for an enter