Added documentation for key events