Create variables.sqf

In @DayZYourMod\addons\dayz_code\init\variables.sqf find this:

dayz_resetSelfActions = {
   s_player_equip_carry = -1;
   s_player_dragbody = -1;
   s_player_fire = -1;
  ...
   s_player_upgradestroage = -1;
   s_player_lockUnlock_crtl = -1;
};
call dayz_resetSelfActions;

Copy all of the above to the very bottom of your custom variables.sqf. Add these 6 lines directly below the last action, which is usually:

s_player_upgradestroage = -1; or s_player_lockUnlock_crtl = -1;