Fix meta-key detection in Windows