added move bounds. fixed block of arrow keys for document.