I tried this as well, and got the same result in Skyrim SE as did Exergist. It opens the console, and just waits. If I close the console myself, then it starts tapping out my programmed keystrokes again, some of which are just ignored, and some of which happen to be mapped keys - so I get the inventory, the Skyrim map, etc.