public void processPressedKey(char pressed) {
        if (waitForSpace && pressed == ' ') {
            waitForSpace = false;
            // Note: nextLetter() is not called here because the
            // currentLetter is already set
        }
        else if (!waitForSpace) {
            if (currentLetter.isCorrectKeyStroke(pressed)) {
                currentLetter.setForeground(pref.getAlreadyTyped());
                nextLetter();

                // Check if this was the last letter
                if (currentLetter == null)
                    finish();
            }
            else {
                currentLetter.setForeground(pref.getMissTypeColor());
                miss++;
            }
        }
        // Mistyped space key
        else
            // miss++;
            ;

        repaint();
    }