Move keyboard key parsing logic to caller

The incrementSize function now takes a keyMap variable instead
of a keycode.
Put in some missing semicolons