Added base functionality to track keys.