[DF-5161] Fixed keyboard handling on Windows