Preventing KeyUp and KeyDown event to bubble up

If these events buble up, it will alter the cursor position. Clicking up
arrow usually takes cursor to the beginning of the text box. This closes