Altering clear input module to use keyup rather than keydown.

- When firing a keydown event the browser returns the value of the
  text box BEFORE the latest character is added.
- When clearing the text box, the X wasn't dissappearing because
  it was still returning the value of the text before it was cleared
- altering it to keyup will return the very latest value of the textbox
  fixing this issue