added keyboard controls if less than 2 gamepads, ticks, constants