Key.isDown

Summary

Listening..... waiting.... watching.... a whole world of possibilities suddenly opens up when you work with key listener functions. We learned these two in this lesson:

You'll want to use Key.LEFT and Key.RIGHT to move the ship on the X axis. And guess what, there are quite a few more where that came from! Here's an alphapbetical list:

In the next lesson, we'll use math to make our vertical movement a little more natural.