Please enable JavaScript to use CodeHS

AP Computer Science Principles in JavaScript

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.

Activities

These are all the activities included in the lesson

4.5.1 Key Events
4.5.2 Key Events Quiz
4.5.3 Keyboard Square
4.5.4 Growing Circle