How do you keep keystates between scenes?

How can I keep keystates between scenes, as unity doesn’t maintain them when switching scenes.

Good day.

What you mean with keystates? know if the player is pressing a button?

If you want to keep that information, you need to create some bool variables in a DontDestroyOnLoad script, and load them again once the new level is loaded.

Bye.