@Override
    public void keyPressed(KeyEvent event)
    {
        if (isLoading)
        {
            return;
        }
        int key = event.getKeyCode();
        switch (key) {
            case KeyEvent.VK_DOWN:
                if (selectedIndex < components.size() - 1)
                {
                    select(selectedIndex + 1);
                }
                break;
            case KeyEvent.VK_UP:
                if (selectedIndex > 0)
                {
                    select(selectedIndex - 1);
                }
                else if (selectedIndex == -1)
                {
                    select(0);
                }
                break;
            case KeyEvent.VK_ENTER:
                loadSelectedProfile();
                break;
        }
    }