Fix ControlW and ControlU keys in Completion mode.

After I hit <tab> and then try to press C-U or C-W it places a ^U or ^W in the line instead of deleting the line. This PR will fix that behavior. 
Same here, at the end of the function, exit ``COMPLETE`` mode.