Switch from using just "bool expandSelection" in the grid functions (possibly) extending the current selection to using the full wxKeyboardState. This allows to pass it to ExtendOrCreateCurrentBlock() and slightly simplify the code by using DoMoveCursorFromKeyboard().