Moved scancode map generation to class level.