5. Add an optional keyboard input.
It’s much easier to debug a program on a desktop than on a mobile
device, so often I’ll add an alternate input option so I can test as much of
the program as possible before moving to the mobile platform. Use the
Scene class’s touchable property to determine whether you’re using a
mobile device. This approach also makes the game playable for a wider
array of users.