Changing the mock input to use keypress

This way we don't bluntly preventDefault on ALL keydown. Which
means we no longer block cmd-r for reload of the page etc...