Actually, the problem is that with the current bugs I have, I can't calculate how fast the game is... it gives an error:undefined when it hits the getkey routine, and it gives the error if you press a key that's not used in the game...
Odd thing is, the menu, which uses the same getkey routine, works like a charm -.-