TINSEL: Clip mouse position to be within the screen (bug #3613765)

The mouse cursor warping code via the keyboard allows the cursor to go
outside the screen. We now limit the cursor's position to always stay
within the screen