Add support for key stroke tracking.