Fixes allow key handling on windows