Move event type processing into a switch statement. Create dummy pause and
unpause methods, calling these is focus is lost or gained, respectively.