Inputcontroller

Improving input handling, both keybord/mouse and gamepad.