Speedup for non-windows, fixes.

See commit comments for details.
Merge pull request #2 from MajorMonodon/master

perf(keyHandler): Speedup for non-windows, fix config.