I submitted PR #9823 to activate the history in the repl, and add several keyboard commands.
Here's a quick demo which shows:
moving the cursor around (start/end of line, move to next/previous word), cutting (until the start/end of line, or the next/previous word) and pasting.
navigating the history (by typing up/down), even within multiline commands.
I made an error on purpose in the demo to show a feature I stole from Julia's REPL: when you go back up and replay command N, then press the down key, it selects command N+1, making it very easy to replay multiple consecutive lines.