use constant WM_KEYDOWN => 0x0100; use constant WM_KEYUP => 0x0101;