This looks like multiple commands per keybinding; that means you probably have to use command chaining. Add a semicolon between those commands. Like so:
bindsym $mod+Ctrl+Up gaps inner current set 0 ; gaps top current set 0
bindsym $mod+Ctrl+Down gaps inner current set 10 ; gaps top current set 2