Character movement force stop after i closed Inventory

lol this is too weird, if im holding one key (A or S or D) , the first time when i click on the closebutton is ok but the second time will stop my movement