When you're cheating in a card game, sometimes your attempt to swap has failed but that's not being caught. You'll know when you're caught

. You'll suddenly stand up from the table and it will let the whole table know you've just been caught cheating. Then it boots you into jail and charges you 100 gold
Though I'm pretty sure when you use the cards, you lose them