Restored support for keydown.