Tetris example: key handling