separate input handling (from keyboard and gamepad) from the results thereof
SNES-like engine in JavaScript