Added entity.click() and bug fixes for other input functions.