Fixed keyboard hook getting garbage collected.