Input box detects key presses.