The Okey module contains some convenient functions to add handlers for key press events in LablGtk applications.
The documentation generated by OCamldoc can be browsed here.
This example creates a window with a label in it displaying the handled key press events. Some handlers show a message box and one handler quits.