Change the movement-based regeneration mechanics to use MODINPUT instead of checking input buttons