@Override
    public void keyPressed(final KeyEvent the_event)
    {
      if (!my_board.gameIsOver() && !my_paused.isPaused()) 
      {
        final String key = KeyEvent.getKeyText(the_event.getKeyCode());
      
        if ("A".equals(key))
        {
          my_board.moveLeft();
        }
        else if ("D".equals(key))
        {
          my_board.moveRight();
        }
        else if ("S".equals(key))
        {
          my_board.moveDown();
        }
        else if ("Space".equals(key))
        {
          my_board.hardDrop();
        }
        else if ("W".equals(key))
        {
          my_board.rotate();
        }
      }
    }