Add text selection support

Update mouse button information during mouse move events.

Reviewed by: Hugo Parente Lima