add keyboard, modify char.c to co-operate with it