changed keyboard to userinput and supported gamepad!