fix extra keydown handler registration, fixes #17825