Toggle custom window with keystroke

I've managed to (somehow) learn how to create custom windows and propagate them with any data i want, but I have
some difficulties to toggle them with key, so what I want to know is how to show the window on first key press and hide it
on another key stroke. What I would like to do is without using game variables or game switches.
Nobody? Then close this thread.

Original thread: https://forums.rpgmakerweb.com/threads/toggle-custom-window-with-keystroke.116909/