Example of 2d game player movement on how to create a generic player input map control system for HTML keyboard events in a javascript typescript game.