Check the key
Open the console and enter bind F. If F already does something else, save its old binding or pick a free key.
Bind inspect
Enter bind F "+lookatweapon". Close the console, equip a weapon in local practice and press F. If inspect does not start, check bind F and try again after the reload finishes.
Restore the old binding
Restore the command you saved or use unbind F if the key was free. If the binding changes after a restart, check your CFG files for lines that bind F.