There is no way to hide your typing on messenger. Anyone who is in the chat with you will be able to see what you are typing as you type it.