Console: Implement back/forward one word escape sequences

Supports OS X and Linux. Not sure if Windows uses these escape sequences or not.