Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python

Lesson 4.5 Key Events

Description

In this lesson, students will learn how to use keyboard keys to control events. Keyboard events capture when the user presses keys on the keyboard. This allows students to write programs that take input from the keyboard to change what is happening in the program.


Objective

Students will be able to:

  • Create interactive programs that use events to respond to the keyboard input.