If you're playing Minecraft Java Edition, then you may need to verify your OS keyboard settings to make certain the F3 key is truly charted to trigger F3 so the game understands it