keyboard: bugfixes