Fix a crash related to setCursor().
TextBox: Implement a lot of usual shortcuts and behaviours.