Fix bug in term.c where keys are echoed to the screen even when they're not added to the key queue