Move Lesson 7 to isKeyPressed

Lesson 7 now uses isKeyPressed for keyboard event handling,
treating horizontal and vertical movement input independently.