A little tidying on the fourth lesson

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

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