A little tidying on the sixth lesson

Moving to switch/case for keyboard event handling,
rather than sequentially chained 'if' statements.

For the sixth tutorial, this should conclude the keyboard
event-handling tidying: there's no need to use isKeyPressed