I always put
control camera using arrow keys
instead of
control camera using arrowkeys
EVERY time I do that

(I write a lot of examples for people and it`s a easy way to look around the scene)
Mentor.
ps : you should put the brackets after the function definition as well , eg:
function create deck()
or you might get weirdness creeping into your code

.
PC1: P4 hyperthreading 3ghz, 1gig mem, 2x160gig hd`s, Nvidia FX5900 gfx, 6 way surround sound, PC2: AMD 1.2ghz, 512mb ram, FX5200 ultra gfx, stereo 16 bit soundblaster.