Calculate size of keyboard state struct in a smarter way.
Add transform module.