Fixing a bug that caused keys not to be monitored.