Find config.cs in your age of time folder. Open it in notepad and add the following lines of code to the bottom:
movemap.bind(keyboard, "q", commandtoserver('cast', "fireball"));
movemap.bind(keyboard,"r",commandtoserver('cast', "ball"));
I think it's self explanatory but if you truly dont understand it, it just makes q get out fireball and r get out ball spell.