fixed windows keyboard handling