generate-lirc: Bugfixes, handle trailing space, some new keys.