Input handler continues.
Patter Editor refactor complete. Work started on handling input on the pattern editor.