Implemented KeyDown and KeyUp messages