Added MainComponent's window.
Added PurityListener's KeyListener.
M.