Change dimensions of rectangle

Are you clicking in the Measurements window? If so, don’t!

You have to select the rectangle and start the Scaling operation as I did. Then let go of the mouse and type.

I used the Dimension tool to show the dimensions to prove that the end dimensions matched what I typed.