Added Ctrl-A and Ctrl-D to Notepad, refactored it a little.