A little tidying on the third lesson

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

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