A little tidying on the second lesson

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

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