How can I save the player input while they're doing something that doesn't currently allow the pressed input action to run?

Found out that it’s referred to as an input buffer, got a bunch of results on Google. Will probably do something similar to what you said, thanks!