Key Fob Buttons Mixup?

The original owner stated that the keyfob doesn't work. Turns out it was just a dead battery.

However, after reprogramming the keyfob- the alarm button is 'lock' and the lock button is now the 'alarm'

What did I do wrong? I searched for an article/thread on this and haven't had much luck.

Any ideas?