\def\setkeywh#1#2#3#4{#1%
\defcs{keywK\keyBase}{#2}%
\defcs{keyhK\keyBase}{#3}%
\defcs{skipBeforeK\keyBase}{#4}%
}
\newdimen\standkeyw\standkeyw 100pt\relax%
\newdimen\standkeyh\standkeyh 35pt\relax%
\for i 0 {16}{\for j 0 {13} {\setkeywh{\Key{}{\the\counti}{\the\countj}}{\standkeyw}{\standkeyh}{0pt}}}
\setkeywh{\Key{}{0}{1}}{\standkeyw}{\standkeyh}{\standkeyw}
\setkeywh{\Key{}{0}{5}}{\standkeyw}{\standkeyh}{0.5\standkeyw}
\setkeywh{\Key{}{0}{9}}{\standkeyw}{\standkeyh}{0.5\standkeyw}
\setkeywh{\Key{}{1}{13}}{2\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{2}{0}}{1.5\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{2}{13}}{1.5\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{3}{0}}{2\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{4}{0}}{1.5\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{4}{12}}{2.5\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{5}{0}}{2\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{5}{1}}{1.5\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{5}{2}}{1.5\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{5}{3}}{5\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{5}{4}}{1.5\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{5}{5}}{1.5\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{5}{6}}{2\standkeyw}{\standkeyh}{0pt}
\setkeywh{\Key{}{9}{0}}{\standkeyw}{\standkeyh}{\standkeyw}
\setkeywh{\Key{}{15}{0}}{2\standkeyw}{\standkeyh}{0pt}
\defcs{keyLineLen0}{13}
\defcs{keyLineLen1}{14}
\defcs{keyLineLen2}{14}
\defcs{keyLineLen3}{13}
\defcs{keyLineLen4}{13}
\defcs{keyLineLen5}{07}
\defcs{keyLineLen6}{03}
\defcs{keyLineLen7}{03}
\defcs{keyLineLen8}{03}
\defcs{keyLineLen9}{01}
\defcs{keyLineLen10}{03}
\defcs{keyLineLen11}{04}
\defcs{keyLineLen12}{04}
\defcs{keyLineLen13}{03}
\defcs{keyLineLen14}{04}
\defcs{keyLineLen15}{02}


\newdimen\afterEscSkip
\afterEscSkip 30pt
\newdimen\afterAlphaSkip
\afterAlphaSkip 30pt

% mods
\setKeyMod{}\defcs{modNameM\keyMod}{No}
\setKeyMod{\Shift}\defcs{modNameM\keyMod}{Shift}
\setKeyMod{\Ctrl}\defcs{modNameM\keyMod}{Ctrl}
\setKeyMod{\Ctrl\Shift}\defcs{modNameM\keyMod}{Ctrl\nl Shift}
\setKeyMod{\Super}\defcs{modNameM\keyMod}{Super}
\setKeyMod{\Super\Shift}\defcs{modNameM\keyMod}{Shift\nl Super}
\setKeyMod{\Ctrl\Super}\defcs{modNameM\keyMod}{Ctrl\nl Super}
\setKeyMod{\Ctrl\Super\Shift}\defcs{modNameM\keyMod}{Ct+Sh\nl Super}

\def\setKeyName#1#2#3{%
\Key{}{#1}{#2}\ex\edef\csname keyNameK\keyBase\endcsname{#3}%
}
\input keymap-keyboard.tex
