Re-press action button to skip dialogue

Hi everyone, i need help with my dialogue system. Everytime the dialogue finishes and i release the action button, the dialogue hides itself. How can i make it so that when the dialogue finishes, even if the player releases the key press action button, it doesn’t hide the dialogue? I want it like that because when they interact with signs or objects of interest or npc, i don’t want the player to skip the dialogue just like that because they were holding the action button, i want them to press the action button again to either close the dialogue box or continue on with their npc’s discussion

I would appreciate any help!

imagine it like this, if the dialogue finishes and the player still has the “e” button pressed, when they release it the dialogue vanishes. i want to make something so the player when they release the “e” button the dialogue doesn’t vanish but vanishes after re-pressing the “e” button. I’m breaking my brain here trying to figure this out