PERFORMANCE: Moved scancode map generation to class level.