Add typings for Keypress