public void keyPressed(int keyCode, int rawKeyCode) {
        int prev = pointer;
        if (keyCode == GameCanvas.UP) {
            pointer--;
        } else if (keyCode == GameCanvas.DOWN) {
            pointer++;
        } else if (keyCode == GameCanvas.FIRE) {
            goToScene(pointer);
        }

        pointer = pointer < 0 ? 3 : (pointer > 3 ? 0 : pointer);
        int next = pointer;
        setButtonImage(prev,next);
    }