When someone says a "glitch" caused a problem on your computer, this is technical talk which means we have absolutely no idea what caused the problem. When your computer glitches, it may freeze up completely, or it may be just one thing won't work right.
A glitch can be caused by a power fluctuation (that gets by your power bar), a design flaw in a program (which is not your fault), by static electricity, a circuit starting to fail, and other causes.
All computers glitch once in a while. This is normal, and this not your fault.
If you get a minor glitch, close the program you are using, and run that program again. If this doesn't work, shut down your computer (by telling it you are going to shut it down), turn the power off, wait 5 seconds, and turn your computer back on again. If it is still not working properly, contact your computer supplier or a computer technician.
If your computer is glitching a lot (eg. more than once per week), and if you have a lot of static electricity around your house, here are a couple things you can try. You can try using a humidifier to increase the humidity in the air, or you may want to try an "anti-static" mat under your keyboard. If you need help with these or if your computer is still glitching regularly, contact your computer supplier or a computer technician for help.