Remap keyboard keys for HTML5 games