Hold alt and double click on the flashlight in your inventory. This will remove the empty battery and now hold alt and hover the new battery over the fleshlight and left click. Spent a few minutes with that aswell.