It works pretty well, but if you hold down, say the "a" key, for a few lines(more than 80 characters) it crashes. It continuously prints "Invalid:". I don't know if the array is overflowing or if it's the integer (or if there's another problem). Do not run this and try to crash it unless you are running it in debug mode. Thanks for your help.