How to clear out keyboard input?

I've been googling this for a while and it feels like none of the answers people suggest work...How do I totally clear out keyboard input? I'm not sure what to call this, but in game maker there's a function io_clear() that achieves this, does Ruby or RPG maker have the same thing?

For example, I have a minigame that says "press space to start, and when playing press space to quit" and when the player presses space to start, as soon as it starts the game is still registering the same "space" input and immediately quits the game. I've tried putting "wait" commands in but for some reason even that doesn't always work. Is there a simple function that just, forgets the players current button press until they release, and press again?
Input.clear() in a script processor should reset the Input library

Ignore me, I clicked on a latest threads thread and didn't know I moved to VX Ace's forum
Is there a simple function that just, forgets the players current button press until they release, and press again?
It's probably your input check that is wrong.
Input.press? will run constantly (afaik) just like Input.repeat?, but Input.trigger? will check once.
if the tip above doesn't help, we need to see how you handle input to give you any further advice.
I think that did it actually! I had just been using the option off the menu that was press only. It seems to be working.

Just out of curiosity, in case its necessary for something else in the future, IS there an input clear in Ruby or RPG maker?
not that I know of. Input is determined by key presses. You hit a key and it acts. The key input is not saved as far as I know.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-clear-out-keyboard-input.141434/