InputHandler class v.2, now controlls mouse-events, joystick-events and keyboard-events, clean code