Holding F on a keyboard does not auto attack mosquitos, even though they are considered a hostile mob. This can be quite a nuisance because they are hard to click on. Instead, one has to wait until the mosquito moves in to attack before holding F will have the character swing their weapon. This also is annoying for trying to defend you doydoy birds and Packim because it is easy to accidentally click on them rather than the mosquito due to its small size.
Spawn mosquito. Hold auto attack button on keyboard. Character will not engage until the mosquito moves in to attack the player