Added support for keyboard shortcuts to record events