Fixed a few incorrect/duplicates keycodes on Darwin.
Added check for undefined on Darwin.
Fixed size optimization lookup issues to discover the optimization is useless ;(
Striped failed size optimizations from all effected platforms.  On the plus side code is easier to comprehend.