Why does the chat bar show up when I right click on Minecraft P.C.?
You shhould go into options and see what keys you have set for all the basic controls and reset them all back to normal.
Once you do that, "T" should be set for chat, right click should be for place and left click for break. My younger brother once had this problem and doing this fixed it.