[Bug 2491] KeyPress, KeyUp and KeyDown behavior