keyboard input and move windows