Add support for keyboard events