Bugfixes and keypress performance improvements.