minor tweaks to keyboard controller