fix test_keyboard_commands