onCardClicked

Function to handle the user selecting a card from the keyboard mode.