Improve hotkeys to use a lookup table.