[debugger] Added Ctrl-w

Ctrl-w removes characters from the beginning of the current word until
the cursor.

Reorganized some character constants so that they're usable from the
tests.

DX-879  # Done.

TEST=unit

Change-Id: If64846d03286a26493840777ffabd50ff9a21739
3 files changed