Use a variable (a boolean or maybe a reference to the selected piece) to toggle between the modes.
There is a (maybe too complicated) example of selection in the RPG Example Project and a simple one in the Content Examples (Mouse Input Map or something like that).