Fix exception while typing in date using keyboard input: take 2

Related to issue #25 - with failing unit test