You don't need to type your cheatcode into any script-box. Just type it "blindly" on your keyboard, and the cheat will take effect.
If you mis-type it, then hit the space bar a few times then start again; it doesn't have to be [ENTER]ed to work, it just reads the series of keystrokes.