@Override
    public void keyPressed(KeyEvent e) {
        switch (e.getKeyCode()) {
            case KeyEvent.VK_LEFT:
                doAction(Action.MOVE_LEFT);
                break;
            case KeyEvent.VK_RIGHT:
                doAction(Action.MOVE_RIGHT);
                break;
            case KeyEvent.VK_DOWN:
                doAction(Action.MOVE_DOWN);
                break;
            case KeyEvent.VK_UP:
                doAction(Action.ROTATE_RIGHT);
                break;
            case KeyEvent.VK_SPACE:
                doAction(Action.HARD_DROP);
                break;
            case KeyEvent.VK_S:
                doAction(Action.DROP);
                break;
        }
    }