Added support for more keys. Also added a "print" function so something like this can be done:

for (var i = 0; i < 5; i++) print('i: ' + i);