I can't type the '%' (percentage) character in my mac terminal
The problem was in the .inputrc file in my home directory.
The first line of this file was like this:

% Cnd down arrows cycle through commands that match the start of a line

I had to changed the '%' at the beginning for a '#'. 
Still I don't know why that line had the percentage instead.