Input handling logic, first implementation.

Using windows libs, needs to be optimised later when batman provide
code.