key input part 2