Fixed bug. Keybord left and up do not work after clicking right/down. In case when startDate = +1 and date was not set.