Calendar of events / Date picker: Fixed numerous keyboard handling issues.

Fixes #5551