You can drop your hat by pressing the equals (=) key. To drop your weapon, use the Backspace key while that gear is equipped.