Like I explained in this thread:
http://forums.graalonline.com/forums...hp?t=134257982
You should be hiding/showing these GUI's instead of destroying them.
In that case:
PHP Code:
function onKeyPressed(code, key){
if (key == "w") Stats_Window1.visible = !Stats_Window1.visible;
}