You mean unplug it from charging? Mmmh, I can't imagine why. Does it freeze completely, or does the audio keep playing? If you press F1, F5 or F6 does it respond showing the menu or resizing the window? If you press CTRL+ALT+Del and you check the task manager, do you see RGSS3 Player in the list?
I don't have a laptop myself, so I can't test this, but if I had to guess, this seems like a specific problem with your laptop and RPG Maker together (I presume no such thing happens when playing other games).