Finished moving input event and cursor functionality into Input class.