I’m trying to create easy 2D game, where character can sprint through levels. Character will sprint when shift is held down. For some reason game can register holding D key for movement but can’t detect other key for sprint when character enters next level. Player has to press and hold sprint key again for sprint.
Is there any easy option how to register all held keys in next level without pressing them again?