Importing enum values into global/function/module local namespace has always been a PITA for javascript environments. Any suggestion on how to do this cleanly?
You'd probably want something slightly different than keys - at least some way to different between key presses and hold the keys down at the same time.