Started integration of readkbd.c into smartcaps.c