If your game playable character or the viewpoint camera keeps moving when you're not touching your controller, the issue is likely to be analog stick drift, sometimes referred to as Joycon Drift.