@Override
    public void onToggle(Key key, boolean pressed) {
        if (key == InputHandler.getInstance().back && pressed) {
            if (pauseMenu == null)
                pauseGame();
            else
                unPauseGame();
        }
    }