I found the solution to this because I had the same problem. You are unable to close the console because you most likely have a 60% keyboard because you have to touch another key at the same time to activate the console so it conflicts the system . Grab another keyboard and do all of your commands there, then switch back. Hope this helps!

TBNRfrags
@TBNRfrags