It seems like the keyboard input buffer is retained between different input boxes. This is wrong, we need to fix this.