An example that implements the command pattern for standard keyboard input in a HTML5 Javascript Typescript game.