As it happens, this question is answered in "Answers" (see tab above.) I have copy/pasted the entry for you below:-
Make sure to use the tilde ~ key to open and close the console, don't click the close button on it.
If it still freezes, type chareditor into the console and it will bring up your character sheet. Click accept to close the character sheet and you should be able to move again. This is what I use and I've never had a problem with it.