added input detection (keyboard) via javascript and made the input system agnostic to arrow keys vs. WASD