Help Game Trouble

ok so i just got in a game of CA then i tryred to switch my guns by pressing 1 and i know my 1 button isent broken cuz im pessing it i keep pressing 1 and my gun wont swap so i press 2 then my pistol comes out then i press 1 agian can i cant go bak to my gun help me