Remove extraneous whitespace
Call removeKeyboardControl in the cancel method