@Override
    public void keyPressed(KeyEvent e) {
        if (!jatketaanko || palikka == null) {
            return;
        }
        if (e.getKeyCode() == KeyEvent.VK_LEFT) {
            palikka.liiku(-25, 0);
        } else if (e.getKeyCode() == KeyEvent.VK_RIGHT) {
            palikka.liiku(25, 0);
        } else if (e.getKeyCode() == KeyEvent.VK_DOWN) {
            palikka.liiku(0, 25);
        } else if (e.getKeyCode() == KeyEvent.VK_UP) {
            kaantaja.kaanna(palikka);
        } else if (e.getKeyCode() == KeyEvent.VK_ENTER
                || e.getKeyCode() == KeyEvent.VK_SPACE) {
            palikka.putoa();
        }
    }