I've attached a project where the keypress functions are not working on a ShowModal TDialog that get's created at runtime.
What's strange is they do work if I drop a control (such as a TButton or TEdit) on the dialog and the control get's focus. Dropping a control like TLabel doesn't work.