Stop propagation of up and down key events