Please enable JavaScript to use CodeHS

Georgia Web Development

Lesson 5.8 Keyboard Interactions

Description

In this lesson, students learn about another event listener - keyboard interactions. Students learn how to listen for a keyboard press, and how to access information about each keyboard stroke.


Objective

Students will be able to:

  • Use keydown and keyup events to read keyboard information
  • Distinguish between key.code and key.key, and when it’s appropriate to use each