game: improve input system

* moved keyboard stuff to separate class
* introduced platform-independent key codes
* introduced touchscreen class