Added eventHandler & insensitivity

When enter was pressed it was not case-insensitive, also I cleaned some up in my opinion. The event handler is also nice.