Select text in REPL with shift-home and shift-end

Title says it all I guess. Tried to mimic the original behavior of the editor.