Improve key_press function.
List imports.
Merge pull request #23 from grayjay/refactor

Refactor Haskell Windows server.