The best way to edit Macaulay 2 code or to run Macaulay 2 is with
GNU emacs, a versatile text editor written by Richard Stallman.
There is a version of emacs for Windows NT and Windows 95 called
NTemacs. See
http://www.cs.washington.edu/homes/voelker/ntemacs.html for details about how to get it, as well as information about how to swap your caps lock and control keys.